Skip to content

feat: add generate-docs command with markdown and man page support#81

Merged
pcfreak30 merged 1 commit into
developfrom
feat/cli-docs-generation
Jun 13, 2026
Merged

feat: add generate-docs command with markdown and man page support#81
pcfreak30 merged 1 commit into
developfrom
feat/cli-docs-generation

Conversation

@pcfreak30

@pcfreak30 pcfreak30 commented Jun 13, 2026

Copy link
Copy Markdown
Member

Add urfave/cli-docs/v3 integration for generating CLI documentation:

  • pinner generate-docs markdown - outputs full command tree as markdown
  • pinner generate-docs man - outputs man page (section configurable)
  • Both support --output/-o flag to write to file
  • GoReleaser generates man page in before hooks
  • Man page included in archives and deb/rpm packages

Add a generate-docs CLI command that produces documentation in markdown or man page format

This PR introduces a new generate-docs command (categorized under "System") with two subcommands:

  • markdown: Generates CLI documentation in markdown format, with an optional --output/-o flag to write to a file (defaults to stdout).
  • man: Generates CLI documentation as a man page, with an optional --output/-o flag and a --section flag (defaults to section 1).

The release pipeline (GoReleaser) is updated to automatically generate a man page during builds, include it in release archives, and install it to /usr/share/man/man1/pinner.1 in Linux packages (nfpms). The root command registration and related tests are also updated to include the new subcommand.

@kody-ai

This comment has been minimized.

Add urfave/cli-docs/v3 integration for generating CLI documentation:
- pinner generate-docs markdown - outputs full command tree as markdown
- pinner generate-docs man - outputs man page (section configurable)
- Both support --output/-o flag to write to file
- GoReleaser generates man page in before hooks
- Man page included in archives and deb/rpm packages
@github-actions

github-actions Bot commented Jun 13, 2026

Copy link
Copy Markdown

Code Coverage Report

Total Coverage: 53.4%

Generated from commit: a859563
Repository: LumeWeb/pinner-cli

@pcfreak30 pcfreak30 force-pushed the feat/cli-docs-generation branch from 0ad651f to 360e1c6 Compare June 13, 2026 17:34
@kody-ai

kody-ai Bot commented Jun 13, 2026

Copy link
Copy Markdown

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug
Performance
Security
Business Logic

Access your configuration settings here.

@pcfreak30 pcfreak30 merged commit b18ba54 into develop Jun 13, 2026
9 checks passed
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.

1 participant