Skip to content

Commit

Permalink
Use --all for all providers (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero authored Oct 11, 2023
1 parent 0332f45 commit 2ae2eea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ func providerAction(cctx *cli.Context) error {
return countProviders(cctx)
}

if cctx.Bool("all") {
return listProviders(cctx, nil)
}

pids := cctx.StringSlice("pid")
if len(pids) == 0 {
if isatty.IsTerminal(os.Stdin.Fd()) {
Expand Down

0 comments on commit 2ae2eea

Please sign in to comment.