Help us shape the future of Go! Take the 2026 Go Developer Survey

docscmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package docscmd implements the "docs" CLI command: generate man pages for the whole command tree straight from the live ff.Command definitions, so the pages never drift from the flags. Without --dir it writes the root man page — enriched with the exit-status, reason-token, and environment sections an agent driving adh as a skill needs — to stdout; with --dir it writes one page per command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*root.Config
	Dir     string
	Flags   *ff.FlagSet
	Command *ff.Command
}

Config holds the configuration for the docs command.

func New

func New(parent *root.Config) *Config

New creates and registers the docs command with the given parent config.

Jump to

Keyboard shortcuts

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