cli

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

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 WithConfigFile added in v0.0.20

func WithConfigFile(configFile string) Option

WithConfigFile sets the path to the configuration file.

func WithMaxProcs

func WithMaxProcs(maxProcs int) Option

WithMaxProcs sets the maximum number of concurrent operations.

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