docs

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package docs contains the functions to generate the markdown documentation for provided commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenCommandMarkdown

func GenCommandMarkdown(cmd *cobra.Command, w io.Writer, isParent bool) error

GenCommandMarkdown generates the markdown for the given command.

func GenCommandPage

func GenCommandPage(cmd *cobra.Command, dir string, genChildrenPages bool, level int) error

GenCommandPage generates the markdown documentation for the provided command and its children. If genChildrenPages is true, it generates a separate markdown file for each child command. If level is greater than 1, it generates a second level paragraph.

Types

This section is empty.

Jump to

Keyboard shortcuts

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