mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
24 lines
481 B
Go
24 lines
481 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/docker"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var context_useCmd = &cobra.Command{
|
|
Use: "use CONTEXT",
|
|
Short: "Set the current docker context",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(context_useCmd).Standalone()
|
|
|
|
contextCmd.AddCommand(context_useCmd)
|
|
|
|
carapace.Gen(context_useCmd).PositionalCompletion(
|
|
docker.ActionContexts(),
|
|
)
|
|
}
|