man

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Command = &cobra.Command{
		Use:   "man",
		Short: "Generate man pages and exit",
		RunE: func(cmd *cobra.Command, _ []string) error {
			rootCmd := cmd.Root()
			disableAutoGenTag(rootCmd)
			if err := os.MkdirAll(manDir, os.FileMode(0o755)); err != nil {
				return fault.Wrap(err)
			}
			if err := doc.GenManTree(rootCmd, nil, manDir); err != nil {
				return fault.Wrap(err)
			}
			return nil
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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