package remote import ( "github.com/spf13/cobra" ) var configDir string var remoteCmd = &cobra.Command{ Use: "remote", Short: "remote", } func InitCmd(cmd *cobra.Command, c string) { configDir = c cmd.AddCommand(remoteCmd) }