clidocs

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command clidocs generates the "Commands and flags" section at the end of docs/cli.md and the man pages, from apic's own command tree, so the reference cannot drift from what the binary accepts. The hand-written parts of docs/cli.md (targets, exit codes, JSON shapes, examples) stay as they are; only the text between the markers is replaced.

go run ./scripts/clidocs            rewrite docs/cli.md (task docs:cli)
go run ./scripts/clidocs -check     exit 1 when docs/cli.md is stale
go run ./scripts/clidocs -man man   write man/apic.1, man/apic-run.1, …

It lives under scripts/ rather than in the binary: nothing at run time needs it, and TestReferenceIsCurrent fails when the committed page is stale, so CI catches a flag added without regenerating.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL