20 lines
238 B
Go
20 lines
238 B
Go
|
package config
|
||
|
|
||
|
import (
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
var configDir string
|
||
|
|
||
|
var configCmd = &cobra.Command{
|
||
|
Use: "config",
|
||
|
Short: "config",
|
||
|
}
|
||
|
|
||
|
func InitCmd(cmd *cobra.Command, c string) {
|
||
|
configDir = c
|
||
|
|
||
|
cmd.AddCommand(configCmd)
|
||
|
|
||
|
}
|