()
| 37 | } |
| 38 | |
| 39 | func (cli *cliCapi) NewCommand() *cobra.Command { |
| 40 | cmd := &cobra.Command{ |
| 41 | Use: "capi [action]", |
| 42 | Short: "Manage interaction with Central API (CAPI)", |
| 43 | DisableAutoGenTag: true, |
| 44 | Args: args.NoArgs, |
| 45 | RunE: func(cmd *cobra.Command, _ []string) error { |
| 46 | return cmd.Usage() |
| 47 | }, |
| 48 | } |
| 49 | |
| 50 | cmd.AddCommand(cli.newRegisterCmd()) |
| 51 | cmd.AddCommand(cli.newStatusCmd()) |
| 52 | |
| 53 | return cmd |
| 54 | } |
| 55 | |
| 56 | func (cli *cliCapi) register(ctx context.Context, capiUserPrefix string, outputFile string) error { |
| 57 | cfg := cli.cfg() |
nothing calls this directly
no test coverage detected