anton-rs / op-up

Composable OP Stack Orchestration
https://stack.anton.systems
MIT License
41 stars 2 forks source link

feat(cli): CLI List Containers Subcommand #55

Closed refcell closed 1 year ago

refcell commented 1 year ago

Description

Inside the op-composer crate, there is a list_containers method to list docker containers that have the op-up label.

A nice to have subcommand would be a simple cli subcommand like containers that would pretty print a nice list of op-up docker containers to stdout as a table

For example:

$ cargo run -- list

op-up docker containers
----------------------------------------------------------
| container            | status      | id       | size   |
----------------------------------------------------------
| l1-execution-client  | up: 1:24:00 | abcdefgh | 156gb  |
| l2-execution-client  | up: 1:24:00 | abcdefgi | 32gb   |
----------------------------------------------------------