Documentation
¶
Index ¶
- func AddConfigurationFlags(cmd *cobra.Command, f *configuration.Flags, p configuration.Params)
- func AddLogFlags(cmd *cobra.Command, f *logging.Flags, p logging.Params)
- func AddLogTargetFlag(cmd *cobra.Command, f *logging.Flags, p logging.Params)
- func AddLogTargetPersistentFlag(cmd *cobra.Command, f *logging.Flags, p logging.Params)
- func GetLogger(cmd *cobra.Command, w io.Writer, p logging.Params) (*slog.Logger, error)
- type Application
- type Command
- type Commander
- type Flags
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConfigurationFlags ¶
func AddConfigurationFlags(cmd *cobra.Command, f *configuration.Flags, p configuration.Params)
func AddLogFlags ¶ added in v0.2.2
func AddLogTargetFlag ¶
AddLogTargetFlag Flag "logtarget" can be added to subcommands to enable specification of the log target It is not added to the root command by default, as it cannot be hidden from subcommands that want to override the behavior
func AddLogTargetPersistentFlag ¶ added in v0.2.5
AddLogTargetPersistentFlag "logtarget" will be added as a persistent flag to subcommands to enable specification of the log target
Types ¶
type Application ¶
func NewApplication ¶
func NewApplication(p Params) *Application
func (*Application) RegisterCommands ¶
func (a *Application) RegisterCommands(c []Commander, f func(command *cobra.Command))
func (*Application) Run ¶
func (a *Application) Run() error
type Command ¶
Click to show internal directories.
Click to hide internal directories.