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