Documentation ¶
Overview ¶
Package cli provides common helpers for the ksync cmds.
These helpers provide:
- A common way to access and handle configuration via. viper.
- Flags that get used by all ksync cmds.
- Logging configuration and setup.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
func ConfigPath() string
ConfigPath returns the directory path being used by config.
func DefaultFlags ¶
DefaultFlags configures a standard set of flags for every command and sub-command.
func InitConfig ¶
InitConfig constructs the configuration from a local configuration file or environment variables if available. This is placed in the global `viper` instance.
func InitLogging ¶
func InitLogging()
InitLogging initializes the logging engine with the configured values.
Types ¶
type BaseCmd ¶
BaseCmd provides helpers for generic sub-commands.
type FinderCmd ¶
type FinderCmd struct {
BaseCmd
}
FinderCmd parses the options required to discover a remote container.
func (*FinderCmd) DefaultFlags ¶
DefaultFlags configures the default flags to find a container.
Click to show internal directories.
Click to hide internal directories.