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

info

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "Print runtime environment"

Name is the command title.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(_ *config.Config, globals *flags.Options) *cli.Command

NewCommand creates a new info command. The verbosity dial is the shared -v: here it lists every bound function, class and method under the summary. The configuration is what every command constructor takes, so one signature covers all of them. This command reads it through globals, which main fills from the configuration before any command is built.

func Run

func Run(ctx context.Context, args []string, opts Options) error

Types

type Options

type Options struct {
	Verbose bool
}

Options holds CLI flag options for the info command.

Jump to

Keyboard shortcuts

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