mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
25 lines
564 B
Go
25 lines
564 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/docker"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var plugin_enableCmd = &cobra.Command{
|
|
Use: "enable [OPTIONS] PLUGIN",
|
|
Short: "Enable a plugin",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(plugin_enableCmd).Standalone()
|
|
|
|
plugin_enableCmd.Flags().Int("timeout", 0, "HTTP client timeout (in seconds)")
|
|
pluginCmd.AddCommand(plugin_enableCmd)
|
|
|
|
carapace.Gen(plugin_enableCmd).PositionalCompletion(
|
|
docker.ActionPlugins(),
|
|
)
|
|
}
|