commands

package
v0.0.0-...-7934b4f Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIContext

type CLIContext struct {
	Customers *customersapi.ClientWithResponses
	Writer    io.Writer
	Debug     bool
}

type GetCustomerCmd

type GetCustomerCmd struct {
	ID string `kong:"required"`
}

func (*GetCustomerCmd) Run

func (ccc *GetCustomerCmd) Run(ctx context.Context, cli *CLIContext) error

type ListCustomersCmd

type ListCustomersCmd struct {
	NextToken string
	Limit     int `default:"100"`
}

func (*ListCustomersCmd) Run

func (ccc *ListCustomersCmd) Run(ctx context.Context, cli *CLIContext) error

type NewCustomerCmd

type NewCustomerCmd struct {
	Name        string   `kong:"required"`
	Labels      []string `kong:"required"`
	Description string
}

func (*NewCustomerCmd) Run

func (ccc *NewCustomerCmd) Run(ctx context.Context, cli *CLIContext) error

Jump to

Keyboard shortcuts

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