cli

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context)

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

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd returns an instance of the root command.

Types

type RootOption

type RootOption struct {
	Triggers       map[string][]string `mapstructure:"-"`
	DynamoEndpoint string              `mapstructure:"dynamo-endpoint"`
	LambdaEndpoint string              `mapstructure:"lambda-endpoint"`
}

RootOption represents options for the root command.

Jump to

Keyboard shortcuts

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