Versions in this module Expand all Collapse all v4 v4.0.1 Jul 17, 2024 v4.0.0 Feb 8, 2024 Changes in this version + func Context(c *gc.C) *cmd.Context + func ContextForDir(c *gc.C, dir string) *cmd.Context + func HelpText(command cmd.Command, name string) string + func InitCommand(c cmd.Command, args []string) error + func NewFlagSet() *gnuflag.FlagSet + func RunCommand(c *gc.C, com cmd.Command, args ...string) (*cmd.Context, error) + func RunCommandInDir(c *gc.C, com cmd.Command, args []string, dir string) (*cmd.Context, error) + func RunCommandWithContext(ctx *cmd.Context, com cmd.Command, args ...string) chan error + func Stderr(ctx *cmd.Context) string + func Stdout(ctx *cmd.Context) string + func TestInit(c *gc.C, com cmd.Command, args []string, errPat string) + type Prompter struct + func NewPrompter(prompt func(string) (string, error)) *Prompter + func (p *Prompter) HasUnread() bool + func (p *Prompter) Read(buf []byte) (int, error) + func (p *Prompter) String() string + func (p *Prompter) Tail() string + func (p *Prompter) Write(buf []byte) (int, error) + type SeqPrompter struct + func NewSeqPrompter(c *gc.C, userInputMarker, text string) *SeqPrompter + func (p *SeqPrompter) AssertDone() + func (p *SeqPrompter) CheckDone() bool Other modules containing this package github.com/juju/cmd/v3