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 context_rmCmd = &cobra.Command{
|
|
Use: "rm CONTEXT [CONTEXT...]",
|
|
Short: "Remove one or more contexts",
|
|
Aliases: []string{"remove"},
|
|
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(docker.ActionContexts())
|
|
}
|