cmdx

package
v0.0.0-...-890f6be Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: GPL-3.0 Imports: 3 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.Servicer, 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.Servicer, error)
}

ServiceCmd represents the service command.

func (*ServiceCmd) NewCmd

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

Jump to

Keyboard shortcuts

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