func do(appEnvObj interface{}) error { appEnv := appEnvObj.(*appEnv) rootCmd, err := cmd.PachctlCmd(appEnv.Address) if err != nil { return err } return rootCmd.Execute() }
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/") }