mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-22 23:51:16 +00:00
26 lines
623 B
Go
26 lines
623 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var config_createCmd = &cobra.Command{
|
|
Use: "create [OPTIONS] CONFIG file|-",
|
|
Short: "Create a config from a file or STDIN",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(config_createCmd).Standalone()
|
|
|
|
config_createCmd.Flags().StringP("label", "l", "", "Config labels")
|
|
config_createCmd.Flags().String("template-driver", "", "Template driver")
|
|
configCmd.AddCommand(config_createCmd)
|
|
|
|
carapace.Gen(config_createCmd).PositionalCompletion(
|
|
carapace.ActionValues(),
|
|
carapace.ActionFiles(),
|
|
)
|
|
}
|