(state *globalState)
| 42 | } |
| 43 | |
| 44 | func (a *App) providerInitCommand(state *globalState) *cobra.Command { |
| 45 | return &cobra.Command{ |
| 46 | Use: "init", |
| 47 | Short: "Initialize the SQLite app state store if it does not already exist", |
| 48 | Args: cobra.NoArgs, |
| 49 | RunE: func(cmd *cobra.Command, _ []string) error { |
| 50 | result, err := providerAPI(state).Init(context.Background()) |
| 51 | if err != nil { |
| 52 | return err |
| 53 | } |
| 54 | fmt.Fprintln(cmd.OutOrStdout(), result.Message) |
| 55 | return nil |
| 56 | }, |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | func (a *App) providerListCommand(state *globalState) *cobra.Command { |
| 61 | var asJSON bool |
no test coverage detected