mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
24 lines
610 B
Go
24 lines
610 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/docker"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var plugin_rmCmd = &cobra.Command{
|
|
Use: "rm [OPTIONS] PLUGIN [PLUGIN...]",
|
|
Short: "Remove one or more plugins",
|
|
Aliases: []string{"remove"},
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(plugin_rmCmd).Standalone()
|
|
|
|
plugin_rmCmd.Flags().BoolP("force", "f", false, "Force the removal of an active plugin")
|
|
pluginCmd.AddCommand(plugin_rmCmd)
|
|
|
|
carapace.Gen(plugin_rmCmd).PositionalAnyCompletion(docker.ActionPlugins())
|
|
}
|