Documentation
¶
Overview ¶
Package config contains common configuration values that are used by the various commands and subcommands in the CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeLogging ¶
InitializeLogging initializes the logging configuration for the CLI. It sets the log level based on the verbose and quiet flags provided by the user. If the quiet flag is set, the logger is set to discard all logs. If the verbose flag is set, the log level is set to debug. Otherwise, the log level is set to info. The logger is then returned for use by caller. We are using Palantir's Witchcraft logging library to structure our logging output.
Types ¶
type ProxyConfig ¶ added in v0.0.199
type ProxyConfig struct {
SocksProxy string
}
ProxyConfig stores proxy settings that are shared by subcommands through context.
func ProxyConfigFromContext ¶ added in v0.0.199
func ProxyConfigFromContext(ctx context.Context) ProxyConfig
ProxyConfigFromContext returns proxy settings from ctx, if present.
type RootFlags ¶
type RootFlags struct {
Quiet bool // When true, suppresses all output except errors
Verbose bool // When true, enables detailed debug logging
SocksProxy string // SOCKS5 proxy URL for TCP connections
}
RootFlags defines the global flags that are available to all commands in the CLI. These flags control the verbosity and output behavior of the application.