getporter/porter

cli: "porter list: list INSTALLED bundles"

Closed this issue · 2 comments

Describe the bug

porter list shows installed and uninstalled bundles.

To Reproduce

Steps to reproduce the behavior:
the 'helper' for the cli command could be updated, or we can add a flag to porter list

Porter Command and Output

Aliased Commands:
  archive       Archive a bundle from a reference
  build         Build a bundle
  copy          Copy a bundle
  create        Create a bundle
  explain       Explain a bundle
  inspect       Inspect a bundle
  install       Create a new installation of a bundle
  invoke        Invoke a custom action on an installation
  lint          Lint a bundle
 * list          List installed bundles*
porter list
----------------------------------------------------------------------------
  NAMESPACE  NAME          VERSION  STATE        STATUS     MODIFIED
----------------------------------------------------------------------------
             porter-hello  0.2.0    installed    succeeded  14 minutes ago
             hello         0.2.0    uninstalled  succeeded  2023-05-17
                           0.2.0    installed    succeeded  2023-05-17

Potential Fixes

  • just change the tag to show "lists installed and uninstalled bundles"
  • remove uninstalled bundles unless we pass an --all flag, but this could break any code that relies on it showing all uninstalled bundles

I would like to pick this issue up.

Closing this since #2888 fixes this