command

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(opt *Opt) int

Execute executes this command

func NewBaseCmd

func NewBaseCmd(opt *Opt) *cobra.Command

NewBaseCmd initializes the root command

func NewServerCmd

func NewServerCmd() *cobra.Command

NewServerCmd initializes server (sub) command

func NewVersionCmd

func NewVersionCmd(version string) *cobra.Command

NewVersionCmd initializes version (sub) command

Types

type Opt

type Opt struct {
	Name    string
	Args    []string
	Version string
	Out     io.Writer
	Err     io.Writer
}

Opt has options for command

Jump to

Keyboard shortcuts

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