commands

package
v0.0.0-...-e6a2447 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: 0BSD Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSubCommands

func GetSubCommands(opt fx.Option) []*cobra.Command

GetSubCommands gives a list of sub commands

func WrapSubCommand

func WrapSubCommand(name string, cmd lib.Command, opt fx.Option) *cobra.Command

Types

type ServeCommand

type ServeCommand struct{}

ServeCommand test command

func NewServeCommand

func NewServeCommand() *ServeCommand

func (*ServeCommand) Run

func (s *ServeCommand) Run() lib.CommandRunner

func (*ServeCommand) Setup

func (s *ServeCommand) Setup(cmd *cobra.Command)

func (*ServeCommand) Short

func (s *ServeCommand) Short() string

Jump to

Keyboard shortcuts

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