cli

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: GPL-3.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MinopTheme

func MinopTheme(msg string, state prompt.State, model string) string

MinopTheme customizes the prompt appearance.

func ShowHelp added in v0.0.10

func ShowHelp()

ShowHelp displays the available CLI commands.

Types

type Cli

type Cli struct {
	// contains filtered or unexported fields
}

Cli provides an interactive command-line interface for remote operations.

func New

func New(opts ...Option) *Cli

New creates a new Cli instance with the given options.

func (Cli) Run

func (c Cli) Run() error

Run starts the interactive CLI loop, reading commands from stdin and executing them on the configured remote hosts. It returns when the user quits or encounters an error.

type Option

type Option func(c *Cli)

Option configures a Cli instance.

func WithMaxProcs

func WithMaxProcs(maxProcs int) Option

WithMaxProcs sets the maximum number of concurrent operations.

func WithTaskFile added in v0.0.22

func WithTaskFile(taskFile string) Option

func WithVerboseLevel added in v0.0.20

func WithVerboseLevel(verboseLevel int) Option

WithVerboseLevel sets the verbosity level for CLI output.

Jump to

Keyboard shortcuts

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