Documentation
¶
Overview ¶
Package cli provides a basic approach to manage parameters, which come either as part of the command line or/and via environment variable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager holds the main entities.
func (*Manager) AddBoolParameter ¶
AddBoolParameter adds a bool parameter to the manager. It sets the flagFunc and the envFunc.
func (*Manager) AddFloat64Parameter ¶
AddFloat64Parameter adds a float64 parameter to the manager. It sets the flagFunc and the envFunc.
func (*Manager) AddIntParameter ¶
AddIntParameter adds a int parameter to the manager. It sets the flagFunc and the envFunc.
func (*Manager) AddStringParameter ¶
AddStringParameter adds a string parameter to the manager. It sets the flagFunc and the envFunc.
Click to show internal directories.
Click to hide internal directories.