Skip to content
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

Merged
merged 1 commit into from
Jun 4, 2015

Conversation

mgummelt
Copy link
Contributor

@mgummelt mgummelt commented Jun 2, 2015

blocked on #189

("NAME", lambda t: t["name"]),
("USER", lambda t: t.user()),
("STATE", lambda t: t["state"].split("_")[-1][0]),
("ID", lambda t: t["id"]),
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright.


def _task(fltr, completed, is_json):
""" List DCOS tasks
def _task(fltr, completed, json_):
Copy link
Contributor

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, keyword. Nvm.

@ssk2
Copy link
Contributor

ssk2 commented Jun 4, 2015

Alright, aside from the "Null" for container type, I'm happy with this.

@mgummelt mgummelt force-pushed the dcos-514-deployment-list branch 4 times, most recently from 9a8fd0e to cd00751 Compare June 4, 2015 18:36
mgummelt added a commit that referenced this pull request Jun 4, 2015
DCOS-514: use readable tables in the output of many commands
@mgummelt mgummelt merged commit c14e44d into master Jun 4, 2015
@mgummelt mgummelt deleted the dcos-514-deployment-list branch June 4, 2015 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants