23 lines
319 B
Go
23 lines
319 B
Go
|
package completion
|
||
|
|
||
|
import (
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
rootCmd *cobra.Command
|
||
|
)
|
||
|
|
||
|
var completionCmd = &cobra.Command{
|
||
|
Use: "completion",
|
||
|
Short: "Generates a shell completion file",
|
||
|
}
|
||
|
|
||
|
// InitCmd initialize the subcommand
|
||
|
func InitCmd(cmd *cobra.Command) {
|
||
|
cmd.AddCommand(completionCmd)
|
||
|
|
||
|
rootCmd = cmd
|
||
|
|
||
|
}
|