cmd

package
v2.0.0-alpha56 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

README

CMD Package Documentation

In this package, the root command and its subcommands are defined for the CLI. This package, which is called from the main package, utilizes the pkg services to execute commands.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Emoji = "\U0001F430" + " Keploy:"

Functions

func Execute

func Execute()

Execute adds all child commands to the root command. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewColorConsole

func NewColorConsole(cfg zapcore.EncoderConfig) (enc zapcore.Encoder)

Types

type Example

type Example struct {
	// contains filtered or unexported fields
}

func NewCmdExample

func NewCmdExample(logger *zap.Logger) *Example

func (*Example) GetCmd

func (e *Example) GetCmd() *cobra.Command

type GenerateConfig

type GenerateConfig struct {
	// contains filtered or unexported fields
}

func NewCmdGenerateConfig

func NewCmdGenerateConfig(logger *zap.Logger) *GenerateConfig

func (*GenerateConfig) GetCmd

func (g *GenerateConfig) GetCmd() *cobra.Command

type MockRecord

type MockRecord struct {
	// contains filtered or unexported fields
}

func NewCmdMockRecord

func NewCmdMockRecord(logger *zap.Logger) *MockRecord

func (*MockRecord) GetCmd

func (mr *MockRecord) GetCmd() *cobra.Command

type MockTest

type MockTest struct {
	// contains filtered or unexported fields
}

func NewCmdMockTest

func NewCmdMockTest(logger *zap.Logger) *MockTest

func (*MockTest) GetCmd

func (s *MockTest) GetCmd() *cobra.Command

type Plugins

type Plugins interface {
	GetCmd() *cobra.Command
}

Plugins is an interface used to define plugins.

type Record

type Record struct {
	// contains filtered or unexported fields
}

func NewCmdRecord

func NewCmdRecord(logger *zap.Logger) *Record

func (*Record) GetCmd

func (r *Record) GetCmd() *cobra.Command

func (*Record) GetRecordConfig

func (t *Record) GetRecordConfig(path *string, proxyPort *uint32, appCmd *string, appContainer, networkName *string, Delay *uint64, buildDelay *time.Duration, passThroughPorts *[]uint, configPath string) error

type Root

type Root struct {
	// contains filtered or unexported fields
}

func (*Root) RegisterPlugin

func (r *Root) RegisterPlugin(p Plugins)

RegisterPlugin registers a plugin by appending it to the list of subCommands.

type Serve

type Serve struct {
	// contains filtered or unexported fields
}

func NewCmdServe

func NewCmdServe(logger *zap.Logger) *Serve

func (*Serve) GetCmd

func (s *Serve) GetCmd() *cobra.Command

type Test

type Test struct {
	// contains filtered or unexported fields
}

func NewCmdTest

func NewCmdTest(logger *zap.Logger) *Test

func (*Test) GetCmd

func (t *Test) GetCmd() *cobra.Command

Jump to

Keyboard shortcuts

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