cmd

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 14 Imported by: 0

README

cmd

  • tools to build cli application easily

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildBasicRootCmd

func BuildBasicRootCmd[C any](app coreapp.App[C]) *cobra.Command

BuildBasicRootCmd builds a root command.

func BuildRootCommand

func BuildRootCommand(name, short string, args cobra.PositionalArgs) *cobra.Command

BuildRootCommand builds the root command.

func StartCmd

func StartCmd[C any](app coreapp.App[C], defaultAppHome string) *cobra.Command

StartCmd runs the application passed in.

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`,.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL