Documentation
¶
Overview ¶
Package base defines shared basic pieces of the Lava command, in particular logging and the Command structure.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands []*Command
Commands is initialized with all the Lava commands.
View Source
var LogLevel = &slog.LevelVar{}
LogLevel is the level of the default logger.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Run func(args []string) error
UsageLine string
Short string
Long string
Flag flag.FlagSet
}
Command represents a Lava command.
Click to show internal directories.
Click to hide internal directories.