cmd

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRoot added in v0.7.0

func NewRoot() (*cobra.Command, *log.Logger)

NewRoot builds the root command and returns it together with the logger. Use this in main so the same logger can be used for catch-all error printing.

func NewRootCmd

func NewRootCmd(logger *log.Logger) *cobra.Command

NewRootCmd builds and returns the root cobra command.

func Root

func Root() *cobra.Command

Root returns the root command for tools like doc generators.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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