Opened 10 years ago
Closed 10 years ago
#25439 closed New feature (fixed)
Add `SUCCESS` style to termcolor palettes
| 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 )
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.
Attachments (1)
Change History (6)
by , 10 years ago
| Attachment: | termcolor-styles.png added |
|---|
comment:1 by , 10 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 10 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
Looks like a generic SUCCESS style would be a nice addition.
comment:3 by , 10 years ago
| Has patch: | set |
|---|
comment:4 by , 10 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|---|
| Version: | 1.8 → master |
Management command termcolors