config

package
v0.100.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(cnf CommandConfig) *command.Command

Types

type CommandConfig

type CommandConfig struct {
	Name                 string
	Category             string
	Description          string
	Info                 string
	HideDefaultUsage     bool
	WithoutLsCommand     bool
	WithoutGetCommand    bool
	WithoutSetCommand    bool
	WithoutAddCommand    bool
	WithoutRemoveCommand bool
	WithoutOptsCommand   bool
	WithoutResetCommand  bool
	// Hide keys from listing. Hidden keys can still be interacted with other commands.
	HideKeys []string
	// Disable keys from any interactions, also hides the key from listing.
	DisableKeys []string
}

func DefaultCommandConfig

func DefaultCommandConfig() CommandConfig

Jump to

Keyboard shortcuts

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