Opened 9 years ago

Last modified 9 years ago

#25439 closed New feature

Add `SUCCESS` style to termcolor palettes — at Version 1

Reported by: Matt Deacalion Stevens Owned by: nobody
Component: Utilities Version: dev
Severity: Normal Keywords: termcolor termcolour colors colours
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Matt Deacalion Stevens)

I've just created a management command that shows if something was successful or whether an error was encountered trying to perform the task. I looked at the palettes in "django/utils/termcolors.py" to find a bold red for displaying the error and found it was called "ERROR".

However, the only bold green style I found was "MIGRATE_SUCCESS", but it feels odd using this in my management command since it has nothing to do with migrations.

Could I add a generic "SUCCESS" style that is the same as "MIGRATE_SUCCESS" or should these styles not be used by third party management commands?

Edit: added a screencap of all the styles.

Change History (2)

by Matt Deacalion Stevens, 9 years ago

Attachment: termcolor-styles.png added

Management command termcolors

comment:1 by Matt Deacalion Stevens, 9 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top