package
0.0.2
Repository: https://github.com/wangtaoking1/app-base.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

FormatExecName is formatted as an executable file name under different operating systems according to the given name.
NewApp creates a new application instance based on the given application name, binary name, and other options.
NewCommand creates a new sub command instance based on the given command name and other options.
WithCmdDescription is used to set the description of the command.
WithCmdOptions to open the application's function to read from the command line.
WithCmdRunFunc is used to set the application's command startup callback function option.
WithCommands set children commands for thie application.
WithDefaultValidArgs set default validation function to valid non-flag arguments.
WithDescription is used to set the description of the application.
WithNoConfig set the application does not provide config flag.
WithNoVersion set the application does not provide version flag.
WithOptions to open the application's function to read from the command line or read parameters from the configuration file.
WithRunFunc is used to set the application startup callback function option.
WithSilence sets the application to silent mode, in which the program startup information, configuration information, and version information are not printed in the console.
WithValidArgs set the validation function to valid non-flag arguments.

# Interfaces

App is the Interface of application.
CmdOptions abstracts configuration options for reading parameters from the command line.
Command is the Interface of command.
CompleteableOptions abstracts options which can be completed.
PrintableOptions abstracts options which can be printed.

# Type aliases

CommandOption defines optional parameters for initializing the command structure.
Option defines optional parameters for initializing the application structure.
RunFunc defines the application's startup callback function.