cli

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 23 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(runGUI func())

func ExecuteWithArgs added in v1.0.0

func ExecuteWithArgs(args []string, runGUI func([]string))

ExecuteWithArgs runs the Cobra root command with explicit args. The runGUI callback is wired so that the `gui` subcommand opens an empty GUI; passing startup files happens via main()'s direct call to runGUI(initialFiles).

func ExitWithError

func ExitWithError(msg string, err error)

func GetLogger

func GetLogger() *slog.Logger

func IsKnownSubcommand added in v1.0.0

func IsKnownSubcommand(name string) bool

IsKnownSubcommand reports whether name is a registered Cobra subcommand on the root command (or one of its aliases). Used by main.go to disambiguate file paths from CLI verbs.

func IsVerbose

func IsVerbose() bool

func SanitizeCertName

func SanitizeCertName(name string) string

SanitizeCertName sanitizes certificate names for logging

func SanitizePath

func SanitizePath(path string) string

SanitizePath sanitizes file paths for logging

Types

This section is empty.

Jump to

Keyboard shortcuts

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