Skip to content

Running filters for 'crane status' #189

@saidimu

Description

@saidimu

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions