Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppOption ¶
type AppOption = func(app *FishermanApp)
func WithCommands ¶
func WithCommands(commands []internal.CliCommand) AppOption
WithCommands setups commands lists for application.
func WithInterruptChanel ¶
func WithSistermInterruptSignals ¶
func WithSistermInterruptSignals() AppOption
type CliCommands ¶
type CliCommands []internal.CliCommand
CliCommands is commands collection type.
func (CliCommands) GetCommand ¶
func (commands CliCommands) GetCommand(commandName string) (internal.CliCommand, error)
GetCommand returns command object by name.
type FishermanApp ¶
type FishermanApp struct {
// contains filtered or unexported fields
}
FishermanApp is main application structure.
func NewFishermanApp ¶
func NewFishermanApp(options ...AppOption) *FishermanApp
NewFishermanApp is an fisherman application constructor.
func (*FishermanApp) PrintDefaults ¶
func (r *FishermanApp) PrintDefaults()
PrintDefaults prints custom information output.
Click to show internal directories.
Click to hide internal directories.