diff --git a/cmd/av/pr.go b/cmd/av/pr.go index 9b95be4f..714cb34d 100644 --- a/cmd/av/pr.go +++ b/cmd/av/pr.go @@ -40,6 +40,7 @@ Examples: > Can you please review it? > EOF `), + Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) (reterr error) { repo, err := getRepo() if err != nil { diff --git a/docs/.gitignore b/docs/.gitignore new file mode 100644 index 00000000..89f9ac04 --- /dev/null +++ b/docs/.gitignore @@ -0,0 +1 @@ +out/ diff --git a/docs/av-pr-create.1.md b/docs/av-pr-create.1.md new file mode 100644 index 00000000..176d4be5 --- /dev/null +++ b/docs/av-pr-create.1.md @@ -0,0 +1,50 @@ +# av-pr-create 1 "" av-cli "Aviator CLI User Manual" + +# NAME + +av-pr-create - Create a pull request for the current branch + +# SYNOPSIS + +`` av pr create [-t | --title=<title>] [-b <body>| --body=<body>] + [--draft] [--edit] [--force] [--no-push] `` + +# DESCRIPTION + +Create a pull request for the current branch. + +# OPTIONS + +`-t <title>, --title=<title>` +: Use the given `<title>` as the title for the pull request. + +`-b <body>, --body=<body>` +: Use the given `<body>` as the body for the pull request. + +`--draft` +: Open the pull request as a draft. + +`--edit` +: Edit the pull request title and description before submitting even if the + pull request already exists. + +`--force` +: Force creation of a pull request even if there is already a pull request + associated with this branch. + +`--no-push` +: Do not push the branch to the remote repository before creating the pull + request. + +# EXAMPLES + +Create a pull request, specifying the body of the PR from standard input: + + $ av pr create --title "Implement fancy feature" --body - <<EOF + > Implement my very fancy feature. + > Can you please review it? + > EOF + +# SEE ALSO + +`av-stack-submit`(1) diff --git a/docs/docs b/docs/docs deleted file mode 100755 index 8c80f70d..00000000 Binary files a/docs/docs and /dev/null differ