Skip to content

Commit 31760da

Browse files
authored
update man-pages and help strings (#646)
This PR was created automatically by Aviator Runbooks. **Runbook URL**: https://app.aviator.co/r/159 **Executed by**: @tulioz <details> <summary>💡 Revise with Runbooks</summary> Use `/aviator revise` to address the feedback provided on this PR: **As a PR comment:** - `/aviator revise` - Process all unresolved review comments on the PR - `/aviator revise [instructions]` - Process any unresolved comments and handle additional instructions. **As a review comment:** - Reply with `/aviator revise [instructions]` to an existing review comment to address that specific thread - Post `/aviator revise [instructions]` as a review comment to have Runbooks revise that code section based on given instructions. [Read the complete guide with examples](https://docs.aviator.co/runbooks/how-to-guides/providing-feedback) </details> ## Steps **Included in this PR** - 1.1 Create av-squash.1.md and update av.1.md - 2.1 Add OPTIONS section to av.1.md with global flags - 2.2 Add missing flags to av-adopt.1.md and av-tree.1.md - 3.1 Add SYNOPSIS sections to av-init.1.md, av-pr-status.1.md, and av-split-commit.1.md - 4.1 Update av-auth.1.md and av-reorder.1.md descriptions - 4.2 Remove --submit flag reference from av-pr.1.md <details> <summary>View all Runbook steps (6 of 6 complete)</summary> 1. **Create av-squash Man Page and Update Main Man Page** - 1.1 Create av-squash.1.md and update av.1.md 👈 2. **Add Missing Flags and OPTIONS Sections** - 2.1 Add OPTIONS section to av.1.md with global flags 👈 - 2.2 Add missing flags to av-adopt.1.md and av-tree.1.md 👈 3. **Add Missing SYNOPSIS Sections** - 3.1 Add SYNOPSIS sections to av-init.1.md, av-pr-status.1.md, and av-split-commit.1.md 👈 4. **Fix Description Mismatches and Remove Invalid Documentation** - 4.1 Update av-auth.1.md and av-reorder.1.md descriptions 👈 - 4.2 Remove --submit flag reference from av-pr.1.md 👈 </details>
1 parent e1d13b4 commit 31760da

File tree

10 files changed

+79
-7
lines changed

10 files changed

+79
-7
lines changed

docs/av-adopt.1.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ av-adopt - Adopt branches that are not managed by `av`
77
## SYNOPSIS
88

99
```synopsis
10-
av adopt [--parent=<parent> | --remote=<branch>]
10+
av adopt [--dry-run] [--parent=<parent> | --remote=<branch>]
1111
```
1212

1313
## DESCRIPTION
@@ -48,6 +48,9 @@ it along with its parent branches.
4848
`--parent=<parent>`
4949
: Force specify the parent branch.
5050

51+
`--dry-run`
52+
: Show what branches would be adopted without actually adopting them.
53+
5154
`--remote=<branch>`
5255
: Specify a remote branch to adopt from.
5356

docs/av-auth.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## NAME
44

5-
av-auth - Show info about the logged in user
5+
av-auth - Check user authentication status
66

77
## SYNOPSIS
88

docs/av-init.1.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
av-init - Initialize the repository for `av`
66

7+
## SYNOPSIS
8+
9+
```synopsis
10+
av init
11+
```
12+
713
## DESCRIPTION
814

915
`av` internally stores metadata in the repository. This command initializes the

docs/av-pr-status.1.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
av-pr-status - Get the status of the associated pull request.
66

7+
## SYNOPSIS
8+
9+
```synopsis
10+
av pr status
11+
```
12+
713
## DESCRIPTION
814

915
Gets the status of the current branch's associated pull request. Also includes

docs/av-pr.1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ av-pr - Create a pull request for the current branch
77
## SYNOPSIS
88

99
```synopsis
10-
av pr create [-t <title>| --title=<title>] [-b <body>| --body=<body>]
10+
av pr [-t <title>| --title=<title>] [-b <body>| --body=<body>]
1111
[--draft] [--edit] [--force] [--no-push] [--reviewers=<reviewers>]
12-
[--submit] [--current] [--queue]
12+
[--all [--current]] [--queue]
1313
```
1414

1515
## DESCRIPTION

docs/av-reorder.1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ av reorder [--continue | --abort]
1515
This is analogous to git rebase --interactive but operates across all branches
1616
in the stack.
1717

18-
Branches can be re-arranged within the stack and commits can be dropped, or
19-
moved within the stack, even across the branches.
18+
Branches can be re-arranged within the stack and commits can be edited,
19+
squashed, dropped, or moved within the stack, even across the branches.
2020

2121
## OPTIONS
2222

docs/av-split-commit.1.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
av-split-commit - Split a commit into multiple commits
66

7+
## SYNOPSIS
8+
9+
```synopsis
10+
av split-commit
11+
```
12+
713
## DESCRIPTION
814

915
Split the currently checked out commit into multiple commits. When invoked, it

docs/av-squash.1.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# av-squash
2+
3+
## NAME
4+
5+
av-squash - Squash commits of the current branch into a single commit
6+
7+
## SYNOPSIS
8+
9+
```synopsis
10+
av squash
11+
```
12+
13+
## DESCRIPTION
14+
15+
Squash all commits on the current branch into a single commit. This command
16+
performs a soft reset to the first commit on the branch (relative to the parent
17+
branch) and then amends that commit with all subsequent changes, effectively
18+
combining all commits into one.
19+
20+
This command requires a clean working directory and will not work on branches
21+
that have already been merged. The branch must have at least two commits to
22+
squash.
23+
24+
After squashing, **av squash** automatically runs **av restack** to rebase
25+
any child branches on the newly squashed commit.
26+
27+
## EXAMPLES
28+
29+
Squash all commits on the current branch:
30+
31+
```bash
32+
$ av squash
33+
```
34+
35+
## SEE ALSO
36+
37+
`av-commit`(1), `av-restack`(1)

docs/av-tree.1.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ av-tree - Show the tree of stacked branches
77
## SYNOPSIS
88

99
```synopsis
10-
av tree
10+
av tree [--current]
1111
```
1212

1313
## DESCRIPTION
1414

1515
Show the tree of stacked branches.
16+
17+
## OPTIONS
18+
19+
`--current`
20+
: Show only the current stack (current branch and its ancestors/descendants).

docs/av.1.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,21 @@ av - Aviator CLI
2626
- av-reparent(1): Change the parent of the current branch
2727
- av-restack(1): Rebase the stacked branches
2828
- av-split-commit(1): Split a commit into multiple commits
29+
- av-squash(1): Squash commits of the current branch into a single commit
2930
- av-switch(1): Interactively switch to a different branch
3031
- av-sync(1): Synchronize stacked branches with GitHub
3132
- av-sync-exclude(1): Toggle branch exclusion from sync --all operations
3233
- av-tidy(1): Tidy stacked branches
3334
- av-tree(1): Show the tree of stacked branches
3435

36+
## OPTIONS
37+
38+
`--debug`
39+
: Enable verbose debug logging.
40+
41+
`-C <directory>`, `--repo=<directory>`
42+
: Directory to use for git repository.
43+
3544
## FURTHER DOCUMENTATION
3645

3746
See [Aviator documentation](https://docs.aviator.co) for the help document

0 commit comments

Comments
 (0)