cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdApp

type CmdApp interface {
	scene.Application
	Command(rootCmd *cobra.Command) error
}

type Container

type Container interface {
	scene.Named
	Execute() error
	ListAppNames() []string
	RootCommand() *cobra.Command
}

func NewContainer

func NewContainer(use, short string, loader *scene.ModuleLoader, options ...RootOption) Container

NewContainer creates a root command backed by loader.

func NewRootContainer

func NewRootContainer(root *cobra.Command, loader *scene.ModuleLoader, options ...RootOption) Container

NewRootContainer creates a command container backed by loader.

type RootOption

type RootOption func(*cobra.Command) error

func WithVersion

func WithVersion(version string) RootOption

Jump to

Keyboard shortcuts

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