Documentation ¶
Overview ¶
Package cli provides functionality for the command-line interface of the application.
Index ¶
- Variables
- func Config(ctx context.Context, logger *zap.Logger, cfg *config.Config, ...) *cobra.Command
- func Example(_ context.Context, logger *zap.Logger, _ *config.Config, _ ServiceFactory, ...) *cobra.Command
- func GenerateUT(ctx context.Context, logger *zap.Logger, _ *config.Config, ...) *cobra.Command
- func Normalize(ctx context.Context, logger *zap.Logger, _ *config.Config, ...) *cobra.Command
- func ReRecord(ctx context.Context, logger *zap.Logger, _ *config.Config, ...) *cobra.Command
- func Record(ctx context.Context, logger *zap.Logger, _ *config.Config, ...) *cobra.Command
- func Register(name string, f HookFunc)
- func Root(ctx context.Context, logger *zap.Logger, svcFactory ServiceFactory, ...) *cobra.Command
- func Test(ctx context.Context, logger *zap.Logger, cfg *config.Config, ...) *cobra.Command
- func Update(ctx context.Context, logger *zap.Logger, _ *config.Config, ...) *cobra.Command
- type CmdConfigurator
- type HookFunc
- type ServiceFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var Registered map[string]HookFunc
Registered holds the registered command hooks
Functions ¶
func Config ¶
func Config(ctx context.Context, logger *zap.Logger, cfg *config.Config, servicefactory ServiceFactory, cmdConfigurator CmdConfigurator) *cobra.Command
func Example ¶
func Example(_ context.Context, logger *zap.Logger, _ *config.Config, _ ServiceFactory, _ CmdConfigurator) *cobra.Command
func GenerateUT ¶
func GenerateUT(ctx context.Context, logger *zap.Logger, _ *config.Config, serviceFactory ServiceFactory, cmdConfigurator CmdConfigurator) *cobra.Command
func Normalize ¶
func Normalize(ctx context.Context, logger *zap.Logger, _ *config.Config, serviceFactory ServiceFactory, cmdConfigurator CmdConfigurator) *cobra.Command
Normalize retrieves the command to normalize Keploy
func ReRecord ¶
func ReRecord(ctx context.Context, logger *zap.Logger, _ *config.Config, serviceFactory ServiceFactory, cmdConfigurator CmdConfigurator) *cobra.Command
func Record ¶
func Record(ctx context.Context, logger *zap.Logger, _ *config.Config, serviceFactory ServiceFactory, cmdConfigurator CmdConfigurator) *cobra.Command
func Root ¶
func Root(ctx context.Context, logger *zap.Logger, svcFactory ServiceFactory, cmdConfigurator CmdConfigurator) *cobra.Command
Types ¶
type CmdConfigurator ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.