Documentation
¶
Index ¶
- func BuildBasicRootCmd[C any](app coreapp.App[C]) *cobra.Command
- func BuildRootCommand(name, short string, args cobra.PositionalArgs) *cobra.Command
- func StartCmd[C any](app coreapp.App[C], defaultAppHome string) *cobra.Command
- func StartCmdWithOptions[C any](app coreapp.App[C], defaultAppHome string, _ StartCmdOptions) *cobra.Command
- type StartCmdOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBasicRootCmd ¶
BuildBasicRootCmd builds a root command.
func BuildRootCommand ¶
func BuildRootCommand(name, short string, args cobra.PositionalArgs) *cobra.Command
BuildRootCommand builds the root command.
func StartCmdWithOptions ¶
func StartCmdWithOptions[C any]( app coreapp.App[C], defaultAppHome string, _ StartCmdOptions, ) *cobra.Command
StartCmdWithOptions runs the service passed in.
Types ¶
type StartCmdOptions ¶
type StartCmdOptions struct{}
StartCmdOptions defines options that can be customized in `StartCmdWithOptions`,.
Click to show internal directories.
Click to hide internal directories.