MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / providerInitCommand

Method providerInitCommand

internal/cli/provider_cmd.go:44–58  ·  view source on GitHub ↗
(state *globalState)

Source from the content-addressed store, hash-verified

42}
43
44func (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
60func (a *App) providerListCommand(state *globalState) *cobra.Command {
61 var asJSON bool

Callers 1

providerCommandMethod · 0.95

Calls 2

providerAPIFunction · 0.85
InitMethod · 0.45

Tested by

no test coverage detected