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