mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-31 23:25:14 +00:00
23 lines
567 B
Go
23 lines
567 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/completers/docker_completer/cmd/action"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var context_rmCmd = &cobra.Command{
|
|
Use: "rm",
|
|
Short: "Remove one or more contexts",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(context_rmCmd).Standalone()
|
|
|
|
context_rmCmd.Flags().BoolP("force", "f", false, "Force the removal of a context in use")
|
|
contextCmd.AddCommand(context_rmCmd)
|
|
|
|
carapace.Gen(context_rmCmd).PositionalAnyCompletion(action.ActionContexts())
|
|
}
|