cmd

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: AGPL-3.0 Imports: 64 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnoGateMode = annoGateMode
	ModeDaemon   = modeDaemon
)
View Source
const AnnoLaunchLoading = "mino_launch_loading"

Variables

View Source
var Version = "dev"

Functions

func App

func App() *app.App

func CheckServeHTTPHost added in v0.1.20

func CheckServeHTTPHost(fromFlag bool, host string) error

func CheckServeHTTPPort added in v0.1.20

func CheckServeHTTPPort(fromFlag bool, port int) error

func CheckServeInterval

func CheckServeInterval(fromFlag bool, d time.Duration) error

func CompleteFlights

func CompleteFlights(c *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

func DefaultFlight

func DefaultFlight() string

func EmitSections

func EmitSections(c *cobra.Command, root string, sections []plugin.Section) error

func Host

func Host(signal string) plugin.Host

func QueryCmd

func QueryCmd(name, short string, bind func(*cobra.Command, *map[string]string)) *cobra.Command

func RecordAction

func RecordAction(label string, started, finished time.Time, sections []plugin.Section)

func RegisterCommand

func RegisterCommand(fn CommandFunc)

func ResolveFlight

func ResolveFlight(args []string) (string, error)

func ResolveServeHTTPIdentity added in v0.1.21

func ResolveServeHTTPIdentity() (serve.HTTPIdentityOptions, error)

func ResolveServeHTTPToken added in v0.1.20

func ResolveServeHTTPToken() (token, source string, err error)

ResolveServeHTTPToken returns the API bearer token and where it came from.

func ResolveWriteTarget

func ResolveWriteTarget(what, setting, configured, requested string) (string, error)

func Root

func Root() *cobra.Command

func Scope added in v0.1.5

func Scope() *ui.Scope

Scope returns the CLI's rendering scope, defaulting to the process globals until PersistentPreRunE has built it.

func ServeHTTP added in v0.1.20

func ServeHTTP() (enabled bool, host string, port int)

func ServeInterval

func ServeInterval() time.Duration

func ServeTheme

func ServeTheme() string

func Shutdown

func Shutdown()

func SignalCmd

func SignalCmd(name, short string) *cobra.Command

func StartLoading

func StartLoading()

func StopLoading

func StopLoading()

Types

type CommandFunc

type CommandFunc func() *cobra.Command

Jump to

Keyboard shortcuts

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