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