Documentation
¶
Index ¶
- func Execute(runGUI func())
- func ExecuteWithArgs(args []string, runGUI func([]string))
- func ExitWithError(msg string, err error)
- func GetLogger() *slog.Logger
- func IsKnownSubcommand(name string) bool
- func IsVerbose() bool
- func SanitizeCertName(name string) string
- func SanitizePath(path string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteWithArgs ¶ added in v1.0.0
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 IsKnownSubcommand ¶ added in v1.0.0
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 SanitizeCertName ¶
SanitizeCertName sanitizes certificate names for logging
func SanitizePath ¶
SanitizePath sanitizes file paths for logging
Types ¶
This section is empty.