示例#1
0
文件: main.go 项目: tv42/pachyderm
func do(appEnvObj interface{}) error {
	appEnv := appEnvObj.(*appEnv)
	rootCmd, err := cmd.PachctlCmd(appEnv.Address)
	if err != nil {
		return err
	}
	return rootCmd.Execute()
}
示例#2
0
文件: main.go 项目: tv42/pachyderm
func do(appEnvObj interface{}) error {
	// passing empty addresses for pfsd and ppsd, that's fine because we're not
	// going to execute the command but print docs with it
	rootCmd, err := cmd.PachctlCmd("")
	if err != nil {
		return err
	}
	return doc.GenMarkdownTree(rootCmd, "./doc/pachctl/")
}
示例#3
0
func do(appEnvObj interface{}) error {
	appEnv := appEnvObj.(*appEnv)
	pfsdAddress := getPfsdAddress(appEnv)
	ppsdAddress := getPpsdAddress(appEnv)
	rootCmd, err := cmd.PachctlCmd(pfsdAddress, ppsdAddress)
	if err != nil {
		return err
	}
	return rootCmd.Execute()
}