cmd

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package cmd provides commands for running the CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCobraCommand added in v0.4.0

func NewCobraCommand(opts ...Option) *cobra.Command

NewCobraCommand returns a configured cobra command that serves as entry point to the vending CLI.

Types

type Option added in v0.4.0

type Option = func(cb *builder)

Option is used to apply customizations to the cmdBuilder.

func WithCommandName added in v0.4.0

func WithCommandName(name string) Option

WithCommandName option customizes the name of the command.

func WithDebugFlag added in v0.4.4

func WithDebugFlag(debugFlag *bool) Option

WithDebugFlag is used to customize the debug flag variable.

func WithPreset added in v0.4.0

func WithPreset(preset vending.Preset) Option

WithPreset is used customizes the Preset that will be used.

Jump to

Keyboard shortcuts

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