Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#25526 closed Cleanup/optimization (fixed)

Document how to output color from custom management commands

Reported by: Baptiste Mispelon Owned by: Elena Oat
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: yes UI/UX: no

Description

I think https://docs.djangoproject.com/en/dev/howto/custom-management-commands/ should explain how you can output color from your command.

It basically boils down to documenting BaseCommand.style which should not be too complicated.

Change History (12)

comment:1 by Simon Charette, 9 years ago

Triage Stage: UnreviewedAccepted
Version: 1.8master

comment:2 by Anagha R, 9 years ago

Owner: changed from nobody to Anagha R
Status: newassigned

comment:3 by Elena Oat, 9 years ago

Owner: changed from Anagha R to Elena Oat

comment:4 by Tim Graham, 9 years ago

Has patch: set
Patch needs improvement: set

I left some comments for improvement on the pull request.

comment:5 by Elena Oat, 9 years ago

Patch needs improvement: unset

comment:6 by Tim Graham, 9 years ago

Patch needs improvement: set

Left some more comments.

comment:7 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In d26207d:

Fixed #25526 -- Documented how to output colored text in custom management commands.

comment:8 by Tim Graham <timograham@…>, 9 years ago

In 43da3179:

[1.9.x] Fixed #25526 -- Documented how to output colored text in custom management commands.

Backport of d26207d56cab21e3767121d53ebaddbbfc78a4ce from master

comment:9 by Tim Graham <timograham@…>, 9 years ago

In a9f1ea32:

[1.8.x] Fixed #25526 -- Documented how to output colored text in custom management commands.

Backport of d26207d56cab21e3767121d53ebaddbbfc78a4ce from master

comment:10 by Tim Graham <timograham@…>, 9 years ago

In 5f7f3b46:

Refs #25526 -- Documented some missing termcolors.

comment:11 by Tim Graham <timograham@…>, 9 years ago

In e7c86871:

[1.9.x] Refs #25526 -- Documented some missing termcolors.

Backport of 5f7f3b46853c958789361a7defda8ca3c3c2be53 from master

comment:12 by Tim Graham <timograham@…>, 9 years ago

In e7da99a:

[1.8.x] Refs #25526 -- Documented some missing termcolors.

Backport of 5f7f3b46853c958789361a7defda8ca3c3c2be53 from master

Note: See TracTickets for help on using tickets.
Back to Top