Skip to content

Commit

Permalink
add color scheme reset #189
Browse files Browse the repository at this point in the history
  • Loading branch information
nosarthur committed Nov 2, 2021
1 parent 5e59a36 commit e457ae0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gita/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ def f_color(args: argparse.Namespace):
writer = csv.DictWriter(f, fieldnames=colors)
writer.writeheader()
writer.writerow(colors)
elif cmd == 'reset':
Path(common.get_config_fname('color.csv')).unlink(missing_ok=True)


def f_info(args: argparse.Namespace):
Expand Down Expand Up @@ -466,6 +468,8 @@ def main(argv=None):
help='additional help with sub-command -h')
color_cmds.add_parser('ll',
description='display available colors and the current branch coloring in the ll sub-command')
color_cmds.add_parser('reset',
description='reset color scheme.')
pc_set = color_cmds.add_parser('set',
description='Set color for local/remote situation.')
pc_set.add_argument('situation',
Expand Down

0 comments on commit e457ae0

Please sign in to comment.