summaryrefslogtreecommitdiff
path: root/src/vgstash_cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/vgstash_cli.py')
-rw-r--r--src/vgstash_cli.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/vgstash_cli.py b/src/vgstash_cli.py
index 5aada8c..39d2454 100644
--- a/src/vgstash_cli.py
+++ b/src/vgstash_cli.py
@@ -38,10 +38,9 @@ def row_format(row, width, header):
# system name (8)
# ownership (3)
# progress (9)
- twidth = int(width) - 36
+ twidth = int(width) - 29
if header == True:
- click.echo("{:^4s} | {:<{w}s} | {:<8s} | {:^3s} | {:<9s}".format(
- "ID",
+ click.echo("{:<{w}s} | {:<8s} | {:^3s} | {:<9s}".format(
"Title",
"System",
"Own",
@@ -50,7 +49,6 @@ def row_format(row, width, header):
)
click.echo("-" * int(width))
- gidstr = "{: >4d}".format(row['rowid'])
titlestr = "{: <{w}s}".format(row['title'][:twidth], w=twidth)
systemstr = "{: ^8s}".format(row['system'][:8])
# unowned, physical, digital, both
@@ -64,7 +62,7 @@ def row_format(row, width, header):
4: 'C'
}
progstr = "{: <7s}".format((" " * row['progress'] * 2) + progltr[row['progress']])
- print(" | ".join((gidstr, titlestr, systemstr, ownstr, progstr)))
+ print(" | ".join((titlestr, systemstr, ownstr, progstr)))
@cli.command('add')