Skip to content

Commit 6572323

Browse files
committed
Tabularize config output
1 parent 86e8268 commit 6572323

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

client/deis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,9 +805,10 @@ def config_list(self, args):
805805
print('No configuration')
806806
return
807807
keys = sorted(values)
808+
width = max(map(len, keys)) + 5
808809
for k in keys:
809810
v = values[k]
810-
print("{k}: {v}".format(**locals()))
811+
print(("{k:<"+str(width)+"} {v}").format(**locals()))
811812
else:
812813
raise ResponseError(response)
813814

0 commit comments

Comments
 (0)