command

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllCommandInfos

func AllCommandInfos() []helpview.CommandInfo

func CommandHelpCategories

func CommandHelpCategories(cmd registry.Command) []helpview.HelpCategory

CommandHelpCategories renders a command's spec into the detailed help view's category model (reused as-is via the help-view factory).

func CommandHelpCmd

func CommandHelpCmd(cmd registry.Command) tea.Cmd

CommandHelpCmd returns the tea.Cmd that navigates to the detailed help screen for a single command. Shared by `:help <cmd>` and the `--help`/`-h` interception path in the dispatcher.

Types

type Bootstrap

type Bootstrap struct{}

func (Bootstrap) Description

func (Bootstrap) Description() string

func (Bootstrap) Execute

func (Bootstrap) Execute(_ any, _ args.Args) tea.Cmd

func (Bootstrap) Name

func (Bootstrap) Name() string

func (Bootstrap) Spec

Spec marks the OSS stub as passthrough: help interception and strict flag validation are skipped so every invocation (incl. --help and any Pro flags) reaches Execute and yields the Business-Edition notice. This keeps Pro flag names/descriptions out of the OSS repo.

type Contexts

type Contexts struct{}

func (Contexts) Description

func (Contexts) Description() string

func (Contexts) Execute

func (Contexts) Execute(ctx any, args args.Args) tea.Cmd

func (Contexts) Name

func (Contexts) Name() string

func (Contexts) Spec

func (Contexts) Spec() registry.CommandSpec

type DevUpdate

type DevUpdate struct{}

DevUpdate is the dev-only :dev-update command. It force-shows the startup "update available" notice on demand for previewing, bypassing the per-version dismissal. Registered only under SWARMCLI_ENV=dev (see init), so it does not exist in production builds.

func (DevUpdate) Description

func (DevUpdate) Description() string

func (DevUpdate) Execute

func (DevUpdate) Execute(_ any, a args.Args) tea.Cmd

func (DevUpdate) Name

func (DevUpdate) Name() string

func (DevUpdate) Spec

type Help

type Help struct{}

func (Help) Description

func (Help) Description() string

func (Help) Execute

func (Help) Execute(_ any, a args.Args) tea.Cmd

func (Help) Name

func (Help) Name() string

func (Help) Spec

func (Help) Spec() registry.CommandSpec

type Quit

type Quit struct{}

func (Quit) Description

func (Quit) Description() string

func (Quit) Execute

func (Quit) Execute(_ any, _ args.Args) tea.Cmd

func (Quit) Name

func (Quit) Name() string

func (Quit) Spec

func (Quit) Spec() registry.CommandSpec

type Unlock

type Unlock struct{}

func (Unlock) Description

func (Unlock) Description() string

func (Unlock) Execute

func (Unlock) Execute(ctx any, args args.Args) tea.Cmd

func (Unlock) Name

func (Unlock) Name() string

func (Unlock) Spec

func (Unlock) Spec() registry.CommandSpec

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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