cli

package
v0.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutocompleteFormulae

func AutocompleteFormulae(ctx context.Context, action *actions.Hops) func(s string) []string

AutocompleteFormulae returns an autocompletion function that suggests formula names.

func CompleteInstalledFormulae

func CompleteInstalledFormulae(_ context.Context, action *actions.Hops) func(s string) []string

CompleteInstalledFormulae returns an autocompletion function that suggests formula names.

func LogLevel

func LogLevel(cmd *cobra.Command, base slog.Level) slog.Level

LogLevel produces the desired slog.Level by parsing the "debug", "verbose", and "quiet" flags.

"base" sets the default level, which gets modified by the flags.

func NewCLI

func NewCLI(version string) *cobra.Command

NewCLI creates the CLI.

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