Example #1
0
File: main.go Project: AP2016/drive
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())
}
Example #2
0
File: main.go Project: AP2016/drive
func (cmd *initCmd) Run(args []string) {
	exitWithError(drive.New(initContext(args), nil).Init())
}
Example #3
0
File: main.go Project: AP2016/drive
func (cmd *publishCmd) Run(args []string) {
	context, path := discoverContext(args)
	exitWithError(drive.New(context, &drive.Options{
		Path: path,
	}).Publish())
}