Skip to content

update man-pages and help strings#646

Merged
aviator-app[bot] merged 9 commits intomasterfrom
av/rb-159-1-6353
Jan 15, 2026
Merged

update man-pages and help strings#646
aviator-app[bot] merged 9 commits intomasterfrom
av/rb-159-1-6353

Conversation

@tulioz
Copy link
Copy Markdown
Contributor

@tulioz tulioz commented Jan 15, 2026

This PR was created automatically by Aviator Runbooks.
Runbook URL: https://app.aviator.co/r/159
Executed by: @tulioz

💡 Revise with Runbooks

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

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
View all Runbook steps (6 of 6 complete)
  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 👈

aviator-bot added 6 commits January 15, 2026 00:25
Create a new man page for the `av squash` command and add it to the main subcommands list.
- Create `/code/docs/av-squash.1.md` with standard man page structure (NAME, SYNOPSIS, DESCRIPTION, EXAMPLES, SEE ALSO)
- Set NAME section to "av-squash - Squash commits of the current branch into a single commit"
- Add SYNOPSIS showing `av squash` with no flags
- Document in DESCRIPTION that it squashes all commits on current branch into a single commit, performs a soft reset to the first commit, and amends it
- Note that it requires a clean working directory and will not work on merged branches
- Add EXAMPLES section showing typical usage
- Include SEE ALSO references to av-commit(1) and av-restack(1)
- Open `/code/docs/av.1.md` and add entry for `av-squash(1)` in alphabetical order in the SUBCOMMANDS section: "- av-squash(1): Squash commits of the current branch into a single commit" (insert between av-split-commit and av-switch)
Update the root command man page to document global flags available to all commands.
- Open `/code/docs/av.1.md` and add an OPTIONS section after SUBCOMMANDS
- Document `--debug` flag: "Enable verbose debug logging"
- Document `-C <directory>, --repo=<directory>` flag: "Directory to use for git repository"
- Follow the same formatting style as other man pages (using definition list syntax with backticks)
Update av-adopt and av-tree man pages to include missing flags.
- Open `/code/docs/av-adopt.1.md` and add `--dry-run` flag entry in the OPTIONS section (between --parent and --remote): "Show what branches would be adopted without actually adopting them"
- Open `/code/docs/av-tree.1.md` and add an OPTIONS section after DESCRIPTION if it doesn't exist
- Document `--current` flag in av-tree: "Show only the current stack (current branch and its ancestors/descendants)"
- Use standard option documentation format with definition lists and backticks
…nd av-split-commit.1.md

Add SYNOPSIS sections to the three man pages that are missing them.
- Open `/code/docs/av-init.1.md` and add SYNOPSIS section after NAME, before DESCRIPTION with: `av init`
- Update the description from "Initialize the repository for Aviator CLI" to "Initialize the repository for `av`" for consistency
- Open `/code/docs/av-pr-status.1.md` and add SYNOPSIS section after NAME, before DESCRIPTION with: `av pr status`
- Open `/code/docs/av-split-commit.1.md` and add SYNOPSIS section after NAME, before DESCRIPTION with: `av split-commit`
Align man page descriptions with the code's help strings.
- Open `/code/docs/av-auth.1.md` and update the NAME section description from "Show info about the logged in user" to "Check user authentication status" to match the code's Short field at `/code/cmd/av/auth.go:19`
- Ensure consistency between NAME and DESCRIPTION sections
- Open `/code/docs/av-reorder.1.md` and update the DESCRIPTION section to include "edited, squashed" in addition to "dropped, or moved" to match the Long description in `/code/cmd/av/reorder.go:35-36`
- Complete phrase should mention that commits can be "edited, squashed, dropped, or moved"
Remove the non-existent --submit flag from the av-pr man page SYNOPSIS.
- Open `/code/docs/av-pr.1.md` and locate the SYNOPSIS section (around line 9-12)
- Remove `[--submit]` from the synopsis as this flag doesn't exist in the code
- Verify the rest of the synopsis matches the actual flags in `/code/cmd/av/pr.go:374-413`
@tulioz tulioz requested a review from a team as a code owner January 15, 2026 01:18
@aviator-app
Copy link
Copy Markdown
Contributor

aviator-app bot commented Jan 15, 2026

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This PR was merged using Aviator.


See the real-time status of this PR on the Aviator webapp.
Use the Aviator Chrome Extension to see the status of your PR within GitHub.

@aviator-app
Copy link
Copy Markdown
Contributor

aviator-app bot commented Jan 15, 2026

✅ FlexReview Status

Common Owner: aviator-co/engineering (expert-load-balance assignment)
Owner and Assignment:

  • aviator-co/engineering (expert-load-balance assignment)
    Owned Files
    • 🔒 docs/av-adopt.1.md
    • 🔒 docs/av-auth.1.md
    • 🔒 docs/av-init.1.md
    • 🔒 docs/av-pr-status.1.md
    • 🔒 docs/av-pr.1.md
    • 🔒 docs/av-reorder.1.md
    • 🔒 docs/av-split-commit.1.md
    • 🔒 docs/av-squash.1.md
    • 🔒 docs/av-tree.1.md
    • 🔒 docs/av.1.md

Review SLO: 7 business hours if PR size is <= 200 LOC for the first response.

@aviator-app aviator-app bot requested a review from davi-maciel January 15, 2026 01:18
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @tulioz, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on enhancing the documentation for the av command-line interface by updating existing man pages and adding new ones. The changes aim to provide more accurate, complete, and user-friendly help strings and command synopses, ensuring that users have up-to-date information on av's functionalities and options.

Highlights

  • New Command Documentation: A new man page for the av squash command has been added, detailing its functionality for squashing commits.
  • Global Options: Global flags (--debug, -C/--repo) have been documented in the main av.1.md man page.
  • Command-Specific Options: Missing options like --dry-run for av adopt and --current for av tree have been added to their respective man pages.
  • Synopsis Sections: SYNOPSIS sections have been introduced for av init, av pr status, and av split-commit commands for better clarity.
  • Description Refinements: Descriptions for av-auth and av-reorder commands have been updated for improved accuracy and completeness.
  • Outdated Flag Removal: The --submit flag reference has been removed from the av pr create synopsis, as it is no longer valid.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request provides a comprehensive update to the man pages for the av CLI tool. It introduces a new man page for av-squash, adds missing SYNOPSIS and OPTIONS sections to several pages, and refines existing descriptions for clarity and accuracy. These changes significantly improve the quality and completeness of the documentation. I have one minor suggestion for consistency in a code block.

@tulioz
Copy link
Copy Markdown
Contributor Author

tulioz commented Jan 15, 2026

/aviator revise

- Add bash language tag to code block in av-squash.1.md
- Add --dry-run flag to SYNOPSIS in av-adopt.1.md
- Add --current flag to SYNOPSIS in av-tree.1.md
@aviator-app
Copy link
Copy Markdown
Contributor

aviator-app bot commented Jan 15, 2026

Review comments addressed successfully!

Summary of Changes

I've successfully addressed all three review comments:

1. av-squash.1.md (lines 31-33) - Added bash language tag

  • Change: Updated the code block in the EXAMPLES section from ``` to ```bash
  • Reason: For consistency with other man pages like av-pr.1.md and to enable proper syntax highlighting
  • Location: docs/av-squash.1.md:31

2. av-adopt.1.md (line 51) - Added --dry-run to SYNOPSIS

  • Change: Updated SYNOPSIS from av adopt [--parent=<parent> | --remote=<branch>] to av adopt [--dry-run] [--parent=<parent> | --remote=<branch>]
  • Reason: The --dry-run flag was documented in the OPTIONS section but missing from the SYNOPSIS, creating an inconsistency
  • Location: docs/av-adopt.1.md:10

3. av-tree.1.md (line 19) - Added [--current] to SYNOPSIS

  • Change: Updated SYNOPSIS from av tree to av tree [--current]
  • Reason: The --current flag was documented in the OPTIONS section but missing from the SYNOPSIS
  • Location: docs/av-tree.1.md:10

4. Context file updated

  • Added learnings about maintaining consistency between SYNOPSIS and OPTIONS sections
  • Documented the importance of using language tags in code blocks for consistency
  • Captured patterns from review feedback for future reference

All changes maintain consistency with the existing man page structure and follow the established documentation patterns in the codebase.

aviator-bot and others added 2 commits January 15, 2026 22:27
- Change command from `av pr create` to `av pr` in SYNOPSIS
- Add missing `--all` flag to SYNOPSIS
- Remove standalone `--current` and nest it with `--all` as `[--all [--current]]`
@aviator-app aviator-app bot merged commit 31760da into master Jan 15, 2026
4 of 5 checks passed
@aviator-app aviator-app bot deleted the av/rb-159-1-6353 branch January 15, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants