예제 #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()
}