examples

package
v0.4.1-0...-1fefb53 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatExamples

func FormatExamples(examples ...Example) string

FormatExamples formats one or more Example instances.

Types

type Example

type Example struct {
	Descriptions  []string
	RootCommand   string
	CommandString string
}

Example defines fields required to construct a CLI command example

func (*Example) String

func (e *Example) String() string

String renders a formatted example.

Jump to

Keyboard shortcuts

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