cmd

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrForbiddenFlagCombination = errors.New("forbidden flag combination")
	ErrMissingDependentFlags    = errors.New("missing dependent flags")
	ErrMutuallyExclusiveFlags   = errors.New("mutually exclusive flags")
)
View Source
var ErrCmdAborted = errors.New("aborted by user")

Functions

func Execute

func Execute()

func NewCli

func NewCli(cmd *cobra.Command) (c8volt.API, *slog.Logger, *config.Config, error)

func Root added in v1.1.3

func Root() *cobra.Command

Types

type Chain

type Chain map[string]process.ProcessInstance

type KeysPath

type KeysPath []string

type RenderMode

type RenderMode int
const (
	RenderModeJSON RenderMode = iota
	RenderModeOneLine
	RenderModeKeysOnly
	RenderModeTree
)

func (RenderMode) String

func (m RenderMode) String() string

type Services

type Services struct {
	Config *config.Config
	HTTP   *httpc.Service
}

func NewFromContext

func NewFromContext(ctx context.Context) (*Services, error)

Jump to

Keyboard shortcuts

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