clicompat

package
v0.0.0-...-dfaa4dd Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIFlagsFromCmd

func APIFlagsFromCmd(cmd *cli.Command) *api.Flags

APIFlagsFromCmd reads the shared API-related flags from a command into api.Flags

func OnUsageError

func OnUsageError(ctx context.Context, cmd *cli.Command, err error, isSubCommand bool) error

func WithAPIFlags

func WithAPIFlags(baseFlags ...cli.Flag) []cli.Flag

WithAPIFlags appends the standard API-related flags used by legacy src

func Wrap

func Wrap(cmd *cli.Command) *cli.Command

Wrap sets common options on a sub commands to ensure consistency for help and error handling

Types

This section is empty.

Jump to

Keyboard shortcuts

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