comparison hgext/color.py @ 30282:7a53458fae4e

color: add basic documentation to 'debugcolor' This does not hurt.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 03 Nov 2016 14:12:32 +0100
parents 9f41b66cffc0
children e1f6898a80e1
comparison
equal deleted inserted replaced
30281:e58acb4fc510 30282:7a53458fae4e
536 _("when to colorize (boolean, always, auto, never, or debug)"), 536 _("when to colorize (boolean, always, auto, never, or debug)"),
537 _('TYPE'))) 537 _('TYPE')))
538 538
539 @command('debugcolor', [], 'hg debugcolor') 539 @command('debugcolor', [], 'hg debugcolor')
540 def debugcolor(ui, repo, **opts): 540 def debugcolor(ui, repo, **opts):
541 """show available colors and effects"""
541 global _styles 542 global _styles
542 _styles = {} 543 _styles = {}
543 for effect in _effects.keys(): 544 for effect in _effects.keys():
544 _styles[effect] = effect 545 _styles[effect] = effect
545 if _terminfo_params: 546 if _terminfo_params: