odo
odo copied to clipboard
`odo list` should be combined output of `odo list component` and `odo list binding`
/kind user-story
User Story
As an odo user, I want to be able to list all things that are related to my application.
Acceptance Criteria
- [ ]
odo list *without--namespaceflag should list resources from the current namespace, if--namespaceis specified it should use that namespace instead - [ ]
odo listshould list components, bindings, (no namespaces) in one screen - [ ]
odo list componentsshould list just components - [ ]
odo list bindingshould list just components - [ ]
odo list namespaceshould list just components - [ ] json output for combined and filtered commands
examples:
▶ odo list
✓ Listing from namespace 'asdf' [269ms]
Components:
NAME PROJECT TYPE RUNNING IN MANAGED
* my-java-springboot-app spring None odo
ServiceBindings:
NAME APPLICATION SERVICES RUNNING IN
* app-hippo my-java-springboot-app-app (Deployment) hippo (PostgresCluster.postgres-operator.crunchydata.com) None
▶ odo list binding
✓ Listing ServiceBindings from the namespace "asdf" [51ms]
NAME APPLICATION SERVICES RUNNING IN
* app-hippo my-java-springboot-app-app (Deployment) hippo (PostgresCluster.postgres-operator.crunchydata.com) None
▶ odo list components
✓ Listing components from namespace 'asdf' [269ms]
NAME PROJECT TYPE RUNNING IN MANAGED
* my-java-springboot-app spring None odo
▶ odo list namespace
ACTIVE NAME
* asdf
/kind user-story