func (cmd *pullCmd) Run(args []string) { context, path := discoverContext(args) exitWithError(drive.New(context, &drive.Options{ Path: path, IsRecursive: *cmd.isRecursive, IsNoPrompt: *cmd.isNoPrompt, }).Pull()) }
func (cmd *initCmd) Run(args []string) { exitWithError(drive.New(initContext(args), nil).Init()) }
func (cmd *publishCmd) Run(args []string) { context, path := discoverContext(args) exitWithError(drive.New(context, &drive.Options{ Path: path, }).Publish()) }