package cibilling import ( "context" "flag" "os" "github.com/peterbourgon/ff/v3/ffcli" "edge-infra.dev/pkg/tools/ci-billing/commands/applylabels" "edge-infra.dev/pkg/tools/ci-billing/commands/billingrefs" "edge-infra.dev/pkg/tools/ci-billing/commands/owners" ) func Run() error { rootFlagSet := flag.NewFlagSet("root", flag.ContinueOnError) root := &ffcli.Command{ Name: "billingcli", ShortUsage: "billingcli ", Subcommands: []*ffcli.Command{ owners.NewCmd(), billingrefs.NewCmd(), applylabels.NewCmd(), }, FlagSet: rootFlagSet, Exec: func(context.Context, []string) error { return flag.ErrHelp }, } return root.ParseAndRun(context.Background(), os.Args[1:]) }