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

Running filters for 'crane status' #189

Open
saidimu opened this issue May 8, 2015 · 2 comments
Open

Running filters for 'crane status' #189

saidimu opened this issue May 8, 2015 · 2 comments

Comments

@saidimu
Copy link

saidimu commented May 8, 2015

I propose a flag to crane status which filters the output by a container's running status.

By default all containers defined in crane.yml are displayed, with the last column showing the runing status:

NAME  IMAGE  ID  UPTODATE  IP  PORTS  RUNNING

When one has a lot of non-running containers, a common-case with data-only containers, the output is mostly blank noise:

searchdata    busybox  -  -  -  -  -
postgresdata  busybox  -  -  -  -  -
queuedata     busybox  -  -  -  -  -

Perhaps such a flag already exists? Couldn't find anything in the v1.2.0 docs.

Given that the outputs of crane status -v and crane status are identical, a new flag isn't strictly needed as the current crane status output can be seen as the verbose option. The disadvantage of this is that it breaks existing behavior.

@bjaglin
Copy link
Collaborator

bjaglin commented May 8, 2015

I can confirm that no such flag exists as of v1.2.0. I kind of like the idea, but I am not sure everyone would agree on what could be filtered out by default: non-running containers or non-existing containers?

@michaelsauter
Copy link
Owner

I agree with @bjaglin, the filters would have to be explicit. -v is supposed to give more background information, not to alter the actual output/action.

I would be open to filters for the status command, but they have very low priority for me. If you would like to see them in Crane, please contribute them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants