websh

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 16 Imported by: 1 module, 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 NewWebshCmd added in v1.20.0

func NewWebshCmd(newClient clientFactory, ios *utils.IOStreams) *cobra.Command

func OutputIn added in v1.21.0

func OutputIn(args []string) (format string, given, missing bool)

OutputIn reads the local output flag without expanding environment arguments.

Types

type WebshArgs added in v1.4.6

type WebshArgs struct {
	Username      string
	Groupname     string
	ServerName    string
	CommandArgs   []string
	Share         bool
	ReadOnly      bool
	WorkSessionID string
	OutputFormat  string
	OutputGiven   bool
	Env           map[string]string
}

func ParseWebshArgs added in v1.4.6

func ParseWebshArgs(ios *utils.IOStreams, args []string) (WebshArgs, error)

ParseWebshArgs parses raw CLI args for `alpacon websh` (DisableFlagParsing mode), returning errHelpRequested when -h/--help is seen before the server name. Every word after the server name, a websh flag included, is the remote command.

NOTE: every named flag must be matched before the unknown-flag case, and in helpOutputFormat too.

Jump to

Keyboard shortcuts

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