aidda

package
v3.0.18 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(g *core.Grokker, args ...string) (err error)

func PrintUsageAndExit

func PrintUsageAndExit()

func Run

func Run(command string, stdin []byte) (stdout, stderr []byte, rc int, err error)

Run runs a command in the shell, returning stdout, stderr, and rc

func RunInteractive

func RunInteractive(command string) (rc int, err error)

RunInteractive runs a command in the shell, with stdio connected to the terminal

func RunTee

func RunTee(command string) (stdout, stderr []byte, rc int, err error)

RunTee runs a command in the shell, with stdout and stderr tee'd to the terminal

Types

type Prompt

type Prompt struct {
	In  []string
	Out []string
	Txt string
}

Prompt is a struct that represents a prompt

func NewPrompt

func NewPrompt(path string) (p *Prompt, err error)

NewPrompt opens or creates a prompt object

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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