odo icon indicating copy to clipboard operation
odo copied to clipboard

`odo list` should be combined output of `odo list component` and `odo list binding`

Open kadel opened this issue 3 years ago • 0 comments

/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 --namespace flag should list resources from the current namespace, if --namespace is specified it should use that namespace instead
  • [ ] odo list should list components, bindings, (no namespaces) in one screen
  • [ ] odo list components should list just components
  • [ ] odo list binding should list just components
  • [ ] odo list namespace should 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

kadel avatar Jul 29 '22 12:07 kadel