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