neomacli

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithOptions

func WithOptions[Options any](f func(cmd *cobra.Command, args []string, options *Options)) func(*cobra.Command, []string)

Types

type CLI

type CLI interface {
	Run()
	Root() *cobra.Command
}

func New

func New[O any](onParsed func(Hooks, *O), opts ...Option) CLI

type Hooks

type Hooks interface {
	OnStart(func())
	OnStop(func())
}

type Logger

type Logger interface {
	Println(args ...any)
}

type Option

type Option func(*cliConfig)

func WithLogger

func WithLogger(l Logger) Option

Jump to

Keyboard shortcuts

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