Bugzilla – Attachment 164946 Details for
Bug 35681
Add support for colored messages in the output of updatedatabase
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35681: Add to template
Bug-35681-Add-to-template.patch (text/plain), 1.15 KB, created by
Tomás Cohen Arazi (tcohen)
on 2024-04-16 14:24:36 UTC
(
hide
)
Description:
Bug 35681: Add to template
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2024-04-16 14:24:36 UTC
Size:
1.15 KB
patch
obsolete
>From 9847800c586ad2a8ff13b63a3cc0d66bca7a1610 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 10 Jan 2024 14:22:13 +0000 >Subject: [PATCH] Bug 35681: Add to template > >This patch adds colors to the skeleton atomic update to hint at their >use >--- > installer/data/mysql/atomicupdate/skeleton.pl | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/installer/data/mysql/atomicupdate/skeleton.pl b/installer/data/mysql/atomicupdate/skeleton.pl >index 92221e8141a..685a0357fcb 100755 >--- a/installer/data/mysql/atomicupdate/skeleton.pl >+++ b/installer/data/mysql/atomicupdate/skeleton.pl >@@ -1,4 +1,5 @@ > use Modern::Perl; >+use Term::ANSIColor; > > return { > bug_number => "BUG_NUMBER", >@@ -28,5 +29,11 @@ return { > > # HTML customizations > say $out "Added 'XXX' HTML customization"; >+ >+ # Other information >+ say $out colored("Use red for danger/failure", 'red'); >+ say $out colored("Use green for success", 'green'); >+ say $out colored("Use yellow for warning/a call to action", 'yellow'); >+ say $out colored("Use blue for further information", 'blue'); > }, > }; >-- >2.44.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35681
:
160439
|
160440
|
160443
|
160444
|
160445
|
160447
|
160448
|
160449
|
160473
|
160503
|
160504
|
160505
|
160506
|
160750
|
160751
|
160772
|
164903
|
164904
|
164905
|
164906
|
164907
|
164908
|
164909
|
164942
|
164943
|
164944
|
164945
| 164946 |
164947
|
164948
|
164949