complex

package module
v0.0.0-...-af4fa9a Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Another

func Another(wait time.Duration)

Another is a subcommand `complex another` -- Another top level command

This command demonstrates using a duration parameter.

Flags:

wait: --wait -w (default: 1s) How long to wait

func Nested

func Nested(count int, verbose bool)

Nested is a subcommand `complex toplevel nested` -- A nested command

This command demonstrates a nested command under 'toplevel'. It takes an integer and a boolean.

Flags:

count: --count -c (default: 1) Number of times to repeat
verbose: --verbose -v (default: false) Enable verbose output

func TopLevel

func TopLevel(name string)

TopLevel is a subcommand `complex toplevel` -- A top level command

This command demonstrates a top level command with a string argument. It prints the name provided.

Flags:

name: --name -n (default: "world") The name to greet

Types

This section is empty.

Directories

Path Synopsis
cmd
complex command

Jump to

Keyboard shortcuts

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