cmdx

package
v0.0.0-...-4fb02c9 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServiceCmd

func NewServiceCmd(use string, short string, svc func(v *viper.Viper) (adapterx.Server, func(), error)) *cobra.Command

NewServiceCmd creates a new service command.

Types

type ServiceCmd

type ServiceCmd struct {
	Use        string
	Short      string
	GetService func(v *viper.Viper) (adapterx.Server, func(), error)
}

ServiceCmd represents the service command.

func (*ServiceCmd) NewCmd

func (c *ServiceCmd) NewCmd() *cobra.Command

NewCmd creates a new service command.

Jump to

Keyboard shortcuts

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