release/dist/cli: default to "all" for list if no filters given

Signed-off-by: David Anderson <danderson@tailscale.com>
pull/7375/head
David Anderson 2 years ago committed by Dave Anderson
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 { func runList(ctx context.Context, filters []string, targets []dist.Target) error {
if len(filters) == 0 {
filters = []string{"all"}
}
tgts, err := dist.FilterTargets(targets, filters) tgts, err := dist.FilterTargets(targets, filters)
if err != nil { if err != nil {
return err return err

Loading…
Cancel
Save