shell

package
v0.0.0-...-97756f6 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const ShellSockPathName = "shell-sock-path"

Variables

View Source
var DefaultConfig = Config{ShellSockPath: ""}

Functions

func ServerCell

func ServerCell(defaultSocketPath string) cell.Cell

func ShellCmd

func ShellCmd(defaultSockPath string, prompt string, printGreeting func(w io.Writer)) *cobra.Command

ShellCmd constructs a cobra command for dialing a shell server.

func ShellExchange

func ShellExchange(c Config, w io.Writer, format string, args ...any) error

ShellExchange sends a single command to the shell. Output is written to the given writer [w].

Types

type Config

type Config struct {
	ShellSockPath string
}

Config is the configuration for the shell server.

func (Config) Flags

func (def Config) Flags(flags *pflag.FlagSet)

Flags adds flags for Config when running the shell server Cell.

func (*Config) Parse

func (cfg *Config) Parse(flags *pflag.FlagSet) (err error)

Parse the config from the flags.

Jump to

Keyboard shortcuts

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