release/dist/cli: default to "all" for list if no filters given
Signed-off-by: David Anderson <danderson@tailscale.com>pull/7375/head
parent
d4122c9f0a
commit
04be5ea725
|
@ -73,6 +73,9 @@ func CLI(getTargets func() ([]dist.Target, error)) *ffcli.Command {
|
|||
}
|
||||
|
||||
func runList(ctx context.Context, filters []string, targets []dist.Target) error {
|
||||
if len(filters) == 0 {
|
||||
filters = []string{"all"}
|
||||
}
|
||||
tgts, err := dist.FilterTargets(targets, filters)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue