{"modulePath":"github.com/guywithnose/pull-request-parser","version":"v0.3.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package command\n\n## Constants\n\n```go\nconst Name string = \"prp\"\n```\nName is the name of this program\n\n```go\nconst Version string = \"0.3.0\"\n```\nVersion is the current version\n\n## Variables\n\n```go\nvar Commands = []cli.Command{\n\t{\n\t\tName:    \"init-config\",\n\t\tAliases: []string{\"ic\"},\n\t\tUsage:   \"Initialize a configuration file\",\n\t\tAction:  CmdInitConfig,\n\t},\n\t{\n\t\tName:         \"parse\",\n\t\tAliases:      []string{\"pa\"},\n\t\tUsage:        \"Parse your pull requests\",\n\t\tAction:       CmdParse,\n\t\tBashComplete: CompleteParse,\n\t\tFlags: []cli.Flag{\n\t\t\tcli.StringFlag{\n\t\t\t\tName:  \"user, owner, u\",\n\t\t\t\tUsage: \"Only show pull requests by owner.\",\n\t\t\t},\n\t\t\tcli.StringSliceFlag{\n\t\t\t\tName:  \"repo, r\",\n\t\t\t\tUsage: \"Only show pull requests on a repository.\",\n\t\t\t},\n\t\t\tcli.BoolFlag{\n\t\t\t\tName:  \"need-rebase, nr\",\n\t\t\t\tUsage: \"Only show pull requests that need a rebase.\",\n\t\t\t},\n\t\t\tcli.BoolFlag{\n\t\t\t\tName:  \"verbose, v\",\n\t\t\t\tUsage: \"Output more info\",\n\t\t\t},\n\t\t\tcli.BoolFlag{\n\t\t\t\tName:  \"use-cache, uc, c\",\n\t\t\t\tUsage: \"Use file cache\",\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tName:    \"profile\",\n\t\tAliases: []string{\"pr\"},\n\t\tUsage:   \"Manage profiles\",\n\t\tSubcommands: []cli.Command{\n\t\t\t{\n\t\t\t\tName:         \"add\",\n\t\t\t\tAliases:      []string{\"a\"},\n\t\t\t\tUsage:        \"Add a profile\",\n\t\t\t\tAction:       CmdProfileAdd,\n\t\t\t\tBashComplete: CompleteProfileAdd,\n\t\t\t\tFlags:        profileCrudFlags,\n\t\t\t},\n\t\t\t{\n\t\t\t\tName:         \"update\",\n\t\t\t\tAliases:      []string{\"u\"},\n\t\t\t\tUsage:        \"Update a profile\",\n\t\t\t\tAction:       CmdProfileUpdate,\n\t\t\t\tBashComplete: CompleteProfileAdd,\n\t\t\t\tFlags:        profileCrudFlags,\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tName:    \"repo\",\n\t\tAliases: []string{\"r\"},\n\t\tUsage:   \"Manage repos.\",\n\t\tSubcommands: []cli.Command{\n\t\t\t{\n\t\t\t\tName:         \"add\",\n\t\t\t\tAliases:      []string{\"a\"},\n\t\t\t\tUsage:        \"Add a repo\",\n\t\t\t\tAction:       CmdRepoAdd,\n\t\t\t\tBashComplete: CompleteRepoAdd,\n\t\t\t},\n\t\t\t{\n\t\t\t\tName:         \"remove\",\n\t\t\t\tAliases:      []string{\"r\"},\n\t\t\t\tUsage:        \"Remove a repo\",\n\t\t\t\tAction:       CmdRepoRemove,\n\t\t\t\tBashComplete: CompleteRepoRemove,\n\t\t\t},\n\t\t\t{\n\t\t\t\tName:         \"ignore-build\",\n\t\t\t\tAliases:      []string{\"ib\"},\n\t\t\t\tUsage:        \"Ignore a build.\",\n\t\t\t\tAction:       CmdRepoIgnoreBuild,\n\t\t\t\tBashComplete: CompleteRepoIgnoreBuild,\n\t\t\t},\n\t\t\t{\n\t\t\t\tName:         \"remove-ignored-build\",\n\t\t\t\tAliases:      []string{\"rib\"},\n\t\t\t\tUsage:        \"Remove a build from the list of ignored builds.\",\n\t\t\t\tAction:       CmdRepoRemoveIgnoredBuild,\n\t\t\t\tBashComplete: CompleteRepoRemoveIgnoredBuild,\n\t\t\t},\n\t\t\t{\n\t\t\t\tName:         \"set-path\",\n\t\t\t\tAliases:      []string{\"sp\"},\n\t\t\t\tUsage:        \"Set the path of the local clone.\",\n\t\t\t\tAction:       CmdRepoSetPath,\n\t\t\t\tBashComplete: CompleteRepoSetPath,\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tName:         \"auto-rebase\",\n\t\tAliases:      []string{\"a\", \"auto\"},\n\t\tUsage:        \"Automatically rebase your pull requests with local path set\",\n\t\tAction:       CmdAutoRebase(runner.Real{}),\n\t\tBashComplete: CompleteAutoRebase,\n\t\tFlags: []cli.Flag{\n\t\t\tcli.StringSliceFlag{\n\t\t\t\tName:  \"repo, r\",\n\t\t\t\tUsage: \"Only rebase these repos.\",\n\t\t\t},\n\t\t\tcli.IntFlag{\n\t\t\t\tName:  \"pull-request-number, prNum, n\",\n\t\t\t\tUsage: \"A specific pull request number\",\n\t\t\t},\n\t\t\tcli.BoolFlag{\n\t\t\t\tName:  \"verbose, v\",\n\t\t\t\tUsage: \"Output more info\",\n\t\t\t},\n\t\t\tcli.BoolFlag{\n\t\t\t\tName:  \"use-cache, uc, c\",\n\t\t\t\tUsage: \"Use file cache\",\n\t\t\t},\n\t\t},\n\t},\n}\n```\nCommands defines the commands that can be called on hostBuilder\n\n```go\nvar GlobalFlags = []cli.Flag{\n\tcli.StringFlag{\n\t\tName:   \"config, c\",\n\t\tUsage:  \"The config file\",\n\t\tEnvVar: \"PRP_CONFIG_FILE\",\n\t},\n\tcli.StringFlag{\n\t\tName:  \"profile, p\",\n\t\tUsage: \"The current profile\",\n\t\tValue: \"default\",\n\t},\n}\n```\nGlobalFlags are the flags that apply to all commands\n\n## Functions\n\n```go\nfunc CmdAutoRebase(cmdWrapper runner.Builder) func(*cli.Context) error\n```\nCmdAutoRebase parses the pull requests\n\n```go\nfunc CmdInitConfig(c *cli.Context) error\n```\nCmdInitConfig creates a new config file\n\n```go\nfunc CmdParse(c *cli.Context) error\n```\nCmdParse parses the pull requests\n\n```go\nfunc CmdProfileAdd(c *cli.Context) error\n```\nCmdProfileAdd parses the pull requests\n\n```go\nfunc CmdProfileUpdate(c *cli.Context) error\n```\nCmdProfileUpdate parses the pull requests\n\n```go\nfunc CmdRepoAdd(c *cli.Context) error\n```\nCmdRepoAdd parses the pull requests\n\n```go\nfunc CmdRepoIgnoreBuild(c *cli.Context) error\n```\nCmdRepoIgnoreBuild parses the pull requests\n\n```go\nfunc CmdRepoRemove(c *cli.Context) error\n```\nCmdRepoRemove parses the pull requests\n\n```go\nfunc CmdRepoRemoveIgnoredBuild(c *cli.Context) error\n```\nCmdRepoRemoveIgnoredBuild parses the pull requests\n\n```go\nfunc CmdRepoSetPath(c *cli.Context) error\n```\nCmdRepoSetPath parses the pull requests\n\n```go\nfunc CompleteAutoRebase(c *cli.Context)\n```\nCompleteAutoRebase handles bash autocompletion for the 'auto-rebase' command\n\n```go\nfunc CompleteParse(c *cli.Context)\n```\nCompleteParse handles bash autocompletion for the 'parse' command\n\n```go\nfunc CompleteProfileAdd(c *cli.Context)\n```\nCompleteProfileAdd handles bash autocompletion for the 'profile add' command\n\n```go\nfunc CompleteRepoAdd(c *cli.Context)\n```\nCompleteRepoAdd handles bash autocompletion for the 'profile repo add' command\n\n```go\nfunc CompleteRepoIgnoreBuild(c *cli.Context)\n```\nCompleteRepoIgnoreBuild handles bash autocompletion for the 'profile repo ignore-build' command\n\n```go\nfunc CompleteRepoRemove(c *cli.Context)\n```\nCompleteRepoRemove handles bash autocompletion for the 'profile repo remove' command\n\n```go\nfunc CompleteRepoRemoveIgnoredBuild(c *cli.Context)\n```\nCompleteRepoRemoveIgnoredBuild handles bash autocompletion for the 'profile repo remove-ignored-build' command\n\n```go\nfunc CompleteRepoSetPath(c *cli.Context)\n```\nCompleteRepoSetPath handles bash autocompletion for the 'profile repo set-path' command\n\n```go\nfunc RootCompletion(c *cli.Context)\n```\nRootCompletion prints the list of root commands as the root completion method This is similar to the default method, but it excludes aliases\n\n","path":"github.com/guywithnose/pull-request-parser/command","name":"command","synopsis":"","isRedistributable":true}
