command

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCommand

func RunCommand(o *RunCommandOpts) error

Types

type CommandParser

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

func NewCommandParser

func NewCommandParser() *CommandParser

func (*CommandParser) Parse

func (p *CommandParser) Parse(r io.Reader) (*ParsedCommand, error)

type ParsedCommand

type ParsedCommand = syntax.File

type RemoteClient

type RemoteClient = goph.Client

func LoginToRemote

func LoginToRemote(remote *config.Remote) (*RemoteClient, error)

type RunCommandOpts

type RunCommandOpts struct {
	Cmd     *ParsedCommand
	Stdout  io.Writer
	Stderr  io.Writer
	Timeout time.Duration
}

Jump to

Keyboard shortcuts

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