Show [C][P] instead of [x][x].

This commit is contained in:
voussoir 2020-01-11 02:58:08 -08:00
parent 72b9f34bfe
commit 7f4bd2baf6

View file

@ -86,11 +86,10 @@ def checkup(directory):
return {'committed': committed, 'pushed': pushed, 'details': details}
def main(argv):
print('[C][P]')
for directory in DIRECTORIES:
result = checkup(directory)
committed = 'x' if result['committed'] else ' '
pushed = 'x' if result['pushed'] else ' '
committed = 'C' if result['committed'] else ' '
pushed = 'P' if result['pushed'] else ' '
details = result['details']
details = f' ({details})' if details else ''
print(f'[{committed}][{pushed}] {directory}{details}')