providerCommand wires `cam provider `. All subcommands operate on provider records stored in CAM's SQLite app state database. Use --store to select a non-default DB path.
(state *globalState)
| 20 | // disable|rename|init>`. All subcommands operate on provider records stored in |
| 21 | // CAM's SQLite app state database. Use --store to select a non-default DB path. |
| 22 | func (a *App) providerCommand(state *globalState) *cobra.Command { |
| 23 | cmd := &cobra.Command{ |
| 24 | Use: "provider", |
| 25 | Aliases: []string{"pr", "providers"}, |
| 26 | Short: "Manage provider records stored in SQLite app state", |
| 27 | } |
| 28 | cmd.AddCommand(a.providerListCommand(state)) |
| 29 | cmd.AddCommand(a.providerShowCommand(state)) |
| 30 | cmd.AddCommand(a.providerAddCommand(state)) |
| 31 | cmd.AddCommand(a.providerUpdateCommand(state)) |
| 32 | cmd.AddCommand(a.providerRemoveCommand(state)) |
| 33 | cmd.AddCommand(a.providerEnableCommand(state)) |
| 34 | cmd.AddCommand(a.providerDisableCommand(state)) |
| 35 | cmd.AddCommand(a.providerRenameCommand(state)) |
| 36 | cmd.AddCommand(a.providerInitCommand(state)) |
| 37 | return cmd |
| 38 | } |
| 39 | |
| 40 | func providerAPI(state *globalState) appapi.ProviderAPI { |
| 41 | return makeProviderAPI(state) |
no test coverage detected