Пример #1
0
func do(appEnvObj interface{}) error {
	appEnv := appEnvObj.(*appEnv)
	rootCmd, err := cmd.PachctlCmd(appEnv.Address)
	if err != nil {
		return err
	}
	return rootCmd.Execute()
}
Пример #2
0
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()
}