commands

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClient

func CreateClient(opts *ClientOptions) (*client.ChronoQueueClient, error)

CreateClient creates a new ChronoQueue client with the given options

func CreateContext

func CreateContext(cmd *cobra.Command) (context.Context, context.CancelFunc)

CreateContext creates a context with timeout if specified

func GetOutputFormat

func GetOutputFormat(cmd *cobra.Command) outputs.OutputFormat

GetOutputFormat extracts output format from cobra command flags

func NewDLQCommand

func NewDLQCommand() *cobra.Command

NewDLQCommand creates the Dead Letter Queue command group

func NewMessageCommand

func NewMessageCommand() *cobra.Command

NewMessageCommand creates the message command group

func NewQueueCommand

func NewQueueCommand() *cobra.Command

NewQueueCommand creates the queue command group

func NewScheduleCommand

func NewScheduleCommand() *cobra.Command

NewScheduleCommand creates the schedule command group

func NewSchemaCommand

func NewSchemaCommand() *cobra.Command

NewSchemaCommand creates the schema command group

func NewServerCommand

func NewServerCommand() *cobra.Command

NewServerCommand creates the server command group

func NewStartCommand

func NewStartCommand() *cobra.Command

NewStartCommand creates the start command group

func NewUICommand added in v1.1.0

func NewUICommand() *cobra.Command

NewUICommand creates the ui command

func NewUIStartCommand added in v1.1.0

func NewUIStartCommand() *cobra.Command

NewUIStartCommand creates the ui start command

func WithClient

func WithClient(cmd *cobra.Command, fn func(*client.ChronoQueueClient) error) error

WithClient is a helper function that creates a client and passes it to a function

Types

type ClientOptions

type ClientOptions struct {
	Server   string
	Insecure bool
	CertFile string
	KeyFile  string
	CAFile   string
	Timeout  time.Duration
	Verbose  bool
}

ClientOptions holds configuration for the ChronoQueue client

func GetClientOptions

func GetClientOptions(cmd *cobra.Command) (*ClientOptions, error)

GetClientOptions extracts client options from cobra command flags

Jump to

Keyboard shortcuts

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