MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / newCmdPluginInstall

Function newCmdPluginInstall

cli/cmd/install.go:24–37  ·  view source on GitHub ↗
(deprecated bool)

Source from the content-addressed store, hash-verified

22)
23
24func newCmdPluginInstall(deprecated bool) *cobra.Command {
25 cmd := &cobra.Command{
26 Use: "install [files or directories]",
27 Short: pluginInstallShort,
28 Long: pluginInstallShort,
29 Example: pluginInstallExample,
30 Args: cobra.MinimumNArgs(1),
31 RunE: installPlugin,
32 }
33 if deprecated {
34 cmd.Deprecated = "use `cloudquery plugin install` instead"
35 }
36 return cmd
37}
38
39func installPlugin(cmd *cobra.Command, args []string) error {
40 cqDir, err := cmd.Flags().GetString("cq-dir")

Callers 1

NewCmdRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected