mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
25 lines
538 B
Go
25 lines
538 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace-bin/pkg/actions/tools/docker"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var context_importCmd = &cobra.Command{
|
|
Use: "import CONTEXT FILE|-",
|
|
Short: "Import a context from a tar or zip file",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(context_importCmd).Standalone()
|
|
|
|
contextCmd.AddCommand(context_importCmd)
|
|
|
|
carapace.Gen(context_importCmd).PositionalCompletion(
|
|
docker.ActionContexts(),
|
|
carapace.ActionFiles(),
|
|
)
|
|
}
|