-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DCOS-514: use readable tables in the output of many commands #195
Conversation
("NAME", lambda t: t["name"]), | ||
("USER", lambda t: t.user()), | ||
("STATE", lambda t: t["state"].split("_")[-1][0]), | ||
("ID", lambda t: t["id"]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we bump ID up to the first column?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so. NAME
is the human readable version, which is what we want most prominent to users. ID
is a base 16 clusterfuck that should only be consumed by computers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright.
0cdba9f
to
180a383
Compare
|
||
def _task(fltr, completed, is_json): | ||
""" List DCOS tasks | ||
def _task(fltr, completed, json_): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't we use the word filter
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh, keyword. Nvm.
180a383
to
66555f5
Compare
Alright, aside from the "Null" for container type, I'm happy with this. |
9a8fd0e
to
cd00751
Compare
cd00751
to
5025920
Compare
DCOS-514: use readable tables in the output of many commands
blocked on #189