Skip to content

Commit

Permalink
docs: Add manpage for av pr create (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
twavv committed Jun 1, 2023
1 parent d240b41 commit c0bb992
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/av/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
out/
50 changes: 50 additions & 0 deletions docs/av-pr-create.1.md
Original file line number Diff line number Diff line change
@@ -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=<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)
Binary file removed docs/docs
Binary file not shown.

0 comments on commit c0bb992

Please sign in to comment.