SYMBOL INDEX (1605 symbols across 127 files) FILE: ast/doc_test.go function Example_AssignmentNode (line 10) | func Example_AssignmentNode() { function Example_AssignmentNode_Single (line 25) | func Example_AssignmentNode_Single() { FILE: ast/node.go constant RedirMapNoValue (line 12) | RedirMapNoValue = -1 constant RedirMapSupress (line 14) | RedirMapSupress = -2 constant RforkFlags (line 16) | RforkFlags = "umnips" type Node (line 21) | type Node interface type assignable (line 36) | type assignable interface type egalitarian (line 43) | type egalitarian struct method equal (line 442) | func (e egalitarian) equal(node, other Node) bool { type Expr (line 46) | type Expr type NodeType (line 49) | type NodeType method Type (line 428) | func (t NodeType) Type() NodeType { method IsExpr (line 433) | func (t NodeType) IsExpr() bool { method IsExecutable (line 438) | func (t NodeType) IsExecutable() bool { type BlockNode (line 52) | type BlockNode struct method Push (line 467) | func (l *BlockNode) Push(n Node) { method IsEqual (line 472) | func (l *BlockNode) IsEqual(other Node) bool { type ImportNode (line 61) | type ImportNode struct method IsEqual (line 510) | func (n *ImportNode) IsEqual(other Node) bool { type SetenvNode (line 70) | type SetenvNode struct method Assignment (line 548) | func (n *SetenvNode) Assignment() Node { return n.assign } method IsEqual (line 551) | func (n *SetenvNode) IsEqual(other Node) bool { type NameNode (line 79) | type NameNode struct method IsEqual (line 581) | func (n *NameNode) IsEqual(other Node) bool { type AssignNode (line 89) | type AssignNode struct method names (line 631) | func (n *AssignNode) names() []*NameNode { return n.Names } method getEqSpace (line 632) | func (n *AssignNode) getEqSpace() int { return n.eqSpace } method setEqSpace (line 633) | func (n *AssignNode) setEqSpace(value int) { n.eqSpace = value } method IsEqual (line 636) | func (n *AssignNode) IsEqual(other Node) bool { type ExecAssignNode (line 100) | type ExecAssignNode struct method names (line 695) | func (n *ExecAssignNode) names() []*NameNode { return n.Names } method getEqSpace (line 696) | func (n *ExecAssignNode) getEqSpace() int { return n.eqSpace } method setEqSpace (line 697) | func (n *ExecAssignNode) setEqSpace(value int) { n.eqSpace = value } method Command (line 700) | func (n *ExecAssignNode) Command() Node { method SetCommand (line 705) | func (n *ExecAssignNode) SetCommand(c Node) { method IsEqual (line 709) | func (n *ExecAssignNode) IsEqual(other Node) bool { type CommandNode (line 111) | type CommandNode struct method IsMulti (line 754) | func (n *CommandNode) IsMulti() bool { return n.multi } method SetMulti (line 755) | func (n *CommandNode) SetMulti(b bool) { n.multi = b } method AddArg (line 758) | func (n *CommandNode) AddArg(a Expr) { method SetArgs (line 763) | func (n *CommandNode) SetArgs(args []Expr) { method Args (line 768) | func (n *CommandNode) Args() []Expr { return n.args } method AddRedirect (line 771) | func (n *CommandNode) AddRedirect(redir *RedirectNode) { method Redirects (line 776) | func (n *CommandNode) Redirects() []*RedirectNode { return n.redirs } method Name (line 779) | func (n *CommandNode) Name() string { return n.name } method IsEqual (line 782) | func (n *CommandNode) IsEqual(other Node) bool { type PipeNode (line 124) | type PipeNode struct method IsMulti (line 843) | func (n *PipeNode) IsMulti() bool { return n.multi } method SetMulti (line 844) | func (n *PipeNode) SetMulti(b bool) { n.multi = b } method AddCmd (line 847) | func (n *PipeNode) AddCmd(c *CommandNode) { method Commands (line 852) | func (n *PipeNode) Commands() []*CommandNode { method IsEqual (line 857) | func (n *PipeNode) IsEqual(other Node) bool { type StringExpr (line 134) | type StringExpr struct type IntExpr (line 144) | type IntExpr struct type ListExpr (line 153) | type ListExpr struct type ConcatExpr (line 163) | type ConcatExpr struct type VarExpr (line 172) | type VarExpr struct type IndexExpr (line 182) | type IndexExpr struct type RedirectNode (line 193) | type RedirectNode struct method SetMap (line 900) | func (r *RedirectNode) SetMap(lfd int, rfd int) { method LeftFD (line 906) | func (r *RedirectNode) LeftFD() int { return r.rmap.lfd } method RightFD (line 909) | func (r *RedirectNode) RightFD() int { return r.rmap.rfd } method SetLocation (line 912) | func (r *RedirectNode) SetLocation(s Expr) { r.location = s } method Location (line 915) | func (r *RedirectNode) Location() Expr { return r.location } method IsEqual (line 918) | func (r *RedirectNode) IsEqual(other Node) bool { type RforkNode (line 203) | type RforkNode struct method Arg (line 952) | func (n *RforkNode) Arg() *StringExpr { method SetFlags (line 957) | func (n *RforkNode) SetFlags(a *StringExpr) { method Tree (line 962) | func (n *RforkNode) Tree() *Tree { method SetTree (line 967) | func (n *RforkNode) SetTree(t *Tree) { method IsEqual (line 971) | func (n *RforkNode) IsEqual(other Node) bool { type CommentNode (line 213) | type CommentNode struct method IsEqual (line 1005) | func (n *CommentNode) IsEqual(other Node) bool { type RedirMap (line 222) | type RedirMap struct type IfNode (line 228) | type IfNode struct method Lvalue (line 1032) | func (n *IfNode) Lvalue() Expr { method Rvalue (line 1037) | func (n *IfNode) Rvalue() Expr { method SetLvalue (line 1042) | func (n *IfNode) SetLvalue(arg Expr) { method SetRvalue (line 1047) | func (n *IfNode) SetRvalue(arg Expr) { method Op (line 1052) | func (n *IfNode) Op() string { return n.op } method SetOp (line 1055) | func (n *IfNode) SetOp(op string) { method IsElseIf (line 1060) | func (n *IfNode) IsElseIf() bool { method SetElseif (line 1065) | func (n *IfNode) SetElseif(b bool) { method SetIfTree (line 1070) | func (n *IfNode) SetIfTree(t *Tree) { method SetElseTree (line 1075) | func (n *IfNode) SetElseTree(t *Tree) { method IfTree (line 1080) | func (n *IfNode) IfTree() *Tree { return n.ifTree } method ElseTree (line 1083) | func (n *IfNode) ElseTree() *Tree { return n.elseTree } method IsEqual (line 1086) | func (n *IfNode) IsEqual(other Node) bool { type VarAssignDeclNode (line 243) | type VarAssignDeclNode struct method IsEqual (line 1165) | func (n *VarAssignDeclNode) IsEqual(other Node) bool { type VarExecAssignDeclNode (line 252) | type VarExecAssignDeclNode struct method IsEqual (line 1185) | func (n *VarExecAssignDeclNode) IsEqual(other Node) bool { type FnArgNode (line 261) | type FnArgNode struct method IsEqual (line 1143) | func (a *FnArgNode) IsEqual(other Node) bool { type FnDeclNode (line 271) | type FnDeclNode struct method SetName (line 1209) | func (n *FnDeclNode) SetName(a string) { method Name (line 1214) | func (n *FnDeclNode) Name() string { method Args (line 1219) | func (n *FnDeclNode) Args() []*FnArgNode { method AddArg (line 1224) | func (n *FnDeclNode) AddArg(arg *FnArgNode) { method Tree (line 1229) | func (n *FnDeclNode) Tree() *Tree { method SetTree (line 1234) | func (n *FnDeclNode) SetTree(t *Tree) { method IsEqual (line 1238) | func (n *FnDeclNode) IsEqual(other Node) bool { type FnInvNode (line 282) | type FnInvNode struct method SetName (line 1273) | func (n *FnInvNode) SetName(a string) { method Name (line 1278) | func (n *FnInvNode) Name() string { method AddArg (line 1283) | func (n *FnInvNode) AddArg(arg Expr) { method Args (line 1288) | func (n *FnInvNode) Args() []Expr { return n.args } method IsEqual (line 1291) | func (n *FnInvNode) IsEqual(other Node) bool { type ReturnNode (line 292) | type ReturnNode struct method IsEqual (line 1354) | func (n *ReturnNode) IsEqual(other Node) bool { type BindFnNode (line 301) | type BindFnNode struct method Name (line 1327) | func (n *BindFnNode) Name() string { return n.name } method CmdName (line 1330) | func (n *BindFnNode) CmdName() string { return n.cmdname } method IsEqual (line 1332) | func (n *BindFnNode) IsEqual(other Node) bool { type ForNode (line 311) | type ForNode struct method SetIdentifier (line 1394) | func (n *ForNode) SetIdentifier(a string) { method Identifier (line 1399) | func (n *ForNode) Identifier() string { return n.identifier } method InExpr (line 1402) | func (n *ForNode) InExpr() Expr { return n.inExpr } method SetInExpr (line 1405) | func (n *ForNode) SetInExpr(a Expr) { n.inExpr = a } method SetTree (line 1408) | func (n *ForNode) SetTree(a *Tree) { method Tree (line 1413) | func (n *ForNode) Tree() *Tree { return n.tree } method IsEqual (line 1415) | func (n *ForNode) IsEqual(other Node) bool { constant NodeSetenv (line 326) | NodeSetenv NodeType = iota + 1 constant NodeBlock (line 329) | NodeBlock constant NodeName (line 332) | NodeName constant NodeAssign (line 335) | NodeAssign constant NodeExecAssign (line 338) | NodeExecAssign constant NodeImport (line 341) | NodeImport constant execBegin (line 343) | execBegin constant NodeCommand (line 346) | NodeCommand constant NodePipe (line 349) | NodePipe constant NodeRedirect (line 352) | NodeRedirect constant NodeFnInv (line 355) | NodeFnInv constant execEnd (line 357) | execEnd constant expressionBegin (line 359) | expressionBegin constant NodeStringExpr (line 362) | NodeStringExpr constant NodeIntExpr (line 365) | NodeIntExpr constant NodeVarExpr (line 368) | NodeVarExpr constant NodeListExpr (line 371) | NodeListExpr constant NodeIndexExpr (line 374) | NodeIndexExpr constant NodeConcatExpr (line 377) | NodeConcatExpr constant expressionEnd (line 379) | expressionEnd constant NodeString (line 382) | NodeString constant NodeRfork (line 385) | NodeRfork constant NodeRforkFlags (line 388) | NodeRforkFlags constant NodeIf (line 391) | NodeIf constant NodeComment (line 394) | NodeComment constant NodeFnArg (line 396) | NodeFnArg constant NodeVarAssignDecl (line 399) | NodeVarAssignDecl constant NodeVarExecAssignDecl (line 402) | NodeVarExecAssignDecl constant NodeFnDecl (line 405) | NodeFnDecl constant NodeReturn (line 408) | NodeReturn constant NodeBindFn (line 411) | NodeBindFn constant NodeFor (line 414) | NodeFor function debug (line 421) | func debug(format string, args ...interface{}) { function NewBlockNode (line 459) | func NewBlockNode(info token.FileInfo) *BlockNode { function NewImportNode (line 500) | func NewImportNode(info token.FileInfo, path *StringExpr) *ImportNode { function NewSetenvNode (line 532) | func NewSetenvNode(info token.FileInfo, name string, assign Node) (*Sete... function NewNameNode (line 572) | func NewNameNode(info token.FileInfo, ident string, index Expr) *NameNode { function NewAssignNode (line 611) | func NewAssignNode(info token.FileInfo, names []*NameNode, values []Expr... function NewSingleAssignNode (line 626) | func NewSingleAssignNode(info token.FileInfo, name *NameNode, value Expr... function NewExecAssignNode (line 680) | func NewExecAssignNode(info token.FileInfo, names []*NameNode, n Node) (... function NewCommandNode (line 744) | func NewCommandNode(info token.FileInfo, name string, multiline bool) *C... function NewPipeNode (line 834) | func NewPipeNode(info token.FileInfo, multi bool) *PipeNode { function NewRedirectNode (line 887) | func NewRedirectNode(info token.FileInfo) *RedirectNode { function NewRforkNode (line 944) | func NewRforkNode(info token.FileInfo) *RforkNode { function NewCommentNode (line 996) | func NewCommentNode(info token.FileInfo, val string) *CommentNode { function NewIfNode (line 1024) | func NewIfNode(info token.FileInfo) *IfNode { function NewFnArgNode (line 1133) | func NewFnArgNode(info token.FileInfo, name string, isVariadic bool) *Fn... function NewVarAssignDecl (line 1158) | func NewVarAssignDecl(info token.FileInfo, assignNode *AssignNode) *VarA... function NewVarExecAssignDecl (line 1178) | func NewVarExecAssignDecl(info token.FileInfo, assignNode *ExecAssignNod... function NewFnDeclNode (line 1199) | func NewFnDeclNode(info token.FileInfo, name string) *FnDeclNode { function NewFnInvNode (line 1263) | func NewFnInvNode(info token.FileInfo, name string) *FnInvNode { function NewBindFnNode (line 1316) | func NewBindFnNode(info token.FileInfo, name, cmd string) *BindFnNode { function NewReturnNode (line 1347) | func NewReturnNode(info token.FileInfo) *ReturnNode { function NewForNode (line 1386) | func NewForNode(info token.FileInfo) *ForNode { function cmpInfo (line 1445) | func cmpInfo(n, other Node) bool { FILE: ast/node_args.go function ExprFromToken (line 11) | func ExprFromToken(val scanner.Token) (Expr, error) { function NewStringExpr (line 25) | func NewStringExpr(info token.FileInfo, value string, quoted bool) *Stri... method Value (line 36) | func (s *StringExpr) Value() string { method SetValue (line 40) | func (s *StringExpr) SetValue(a string) { method IsEqual (line 44) | func (s *StringExpr) IsEqual(other Node) bool { function NewIntExpr (line 62) | func NewIntExpr(info token.FileInfo, val int) *IntExpr { method Value (line 71) | func (i *IntExpr) Value() int { return i.val } method IsEqual (line 73) | func (i *IntExpr) IsEqual(other Node) bool { function NewListExpr (line 87) | func NewListExpr(info token.FileInfo, values []Expr) *ListExpr { function NewListVariadicExpr (line 91) | func NewListVariadicExpr(info token.FileInfo, values []Expr, variadic bo... method PushExpr (line 102) | func (l *ListExpr) PushExpr(a Expr) { method IsEqual (line 106) | func (l *ListExpr) IsEqual(other Node) bool { function NewConcatExpr (line 133) | func NewConcatExpr(info token.FileInfo, parts []Expr) *ConcatExpr { method PushExpr (line 143) | func (c *ConcatExpr) PushExpr(a Expr) { method SetConcat (line 148) | func (c *ConcatExpr) SetConcat(v []Expr) { method List (line 152) | func (c *ConcatExpr) List() []Expr { return c.concat } method IsEqual (line 154) | func (c *ConcatExpr) IsEqual(other Node) bool { function NewVarExpr (line 178) | func NewVarExpr(info token.FileInfo, name string) *VarExpr { function NewVarVariadicExpr (line 182) | func NewVarVariadicExpr(info token.FileInfo, name string, isVariadic boo... method IsEqual (line 191) | func (v *VarExpr) IsEqual(other Node) bool { function NewIndexExpr (line 205) | func NewIndexExpr(info token.FileInfo, va *VarExpr, idx Expr) *IndexExpr { function NewIndexVariadicExpr (line 209) | func NewIndexVariadicExpr(info token.FileInfo, va *VarExpr, idx Expr, va... method IsEqual (line 220) | func (i *IndexExpr) IsEqual(other Node) bool { FILE: ast/node_fmt.go method String (line 9) | func (s *StringExpr) String() string { method String (line 17) | func (i *IntExpr) String() string { method string (line 21) | func (l *ListExpr) string() (string, bool) { method String (line 43) | func (l *ListExpr) String() string { method String (line 48) | func (c *ConcatExpr) String() string { method String (line 62) | func (v *VarExpr) String() string { method String (line 69) | func (i *IndexExpr) String() string { method adjustGroupAssign (line 77) | func (l *BlockNode) adjustGroupAssign(node assignable, nodes []Node) { method String (line 107) | func (l *BlockNode) String() string { method String (line 158) | func (n *ImportNode) String() string { method String (line 163) | func (n *SetenvNode) String() string { method String (line 171) | func (n *NameNode) String() string { method string (line 179) | func (n *AssignNode) string() (string, bool) { method String (line 227) | func (n *AssignNode) String() string { method string (line 232) | func (n *ExecAssignNode) string() (string, bool) { method String (line 260) | func (n *ExecAssignNode) String() string { method toStringParts (line 265) | func (n *CommandNode) toStringParts() ([]string, int) { method multiString (line 336) | func (n *CommandNode) multiString() string { method string (line 356) | func (n *CommandNode) string() (string, bool) { method String (line 376) | func (n *CommandNode) String() string { method multiString (line 381) | func (n *PipeNode) multiString() string { method string (line 441) | func (n *PipeNode) string() (string, bool) { method String (line 459) | func (n *PipeNode) String() string { method String (line 465) | func (r *RedirectNode) String() string { method String (line 492) | func (n *RforkNode) String() string { method String (line 512) | func (n *CommentNode) String() string { method String (line 517) | func (n *IfNode) String() string { method String (line 566) | func (n *VarAssignDeclNode) String() string { return "var " + n.Assi... method String (line 567) | func (n *VarExecAssignDeclNode) String() string { return "var " + n.Exec... method String (line 570) | func (n *FnDeclNode) String() string { method String (line 603) | func (arg *FnArgNode) String() string { method string (line 612) | func (n *FnInvNode) string() (string, bool) { method String (line 628) | func (n *FnInvNode) String() string { method String (line 634) | func (n *BindFnNode) String() string { method String (line 639) | func (n *ReturnNode) String() string { method String (line 658) | func (n *ForNode) String() string { function stringify (line 684) | func stringify(s string) string { function getlhs (line 707) | func getlhs(node assignable) string { FILE: ast/node_fmt_test.go function testPrinter (line 9) | func testPrinter(t *testing.T, node Node, expected string) { function TestAstPrinterStringExpr (line 15) | func TestAstPrinterStringExpr(t *testing.T) { function TestASTPrinterAssignment (line 70) | func TestASTPrinterAssignment(t *testing.T) { FILE: ast/nodetype_string.go constant _NodeType_name (line 7) | _NodeType_name = "NodeSetenvNodeBlockNodeNameNodeAssignNodeExecAssignNod... method String (line 11) | func (i NodeType) String() string { FILE: ast/tree.go type Tree (line 5) | type Tree struct method IsEqual (line 18) | func (t *Tree) IsEqual(other *Tree) bool { method String (line 26) | func (tree *Tree) String() string { function NewTree (line 12) | func NewTree(name string) *Tree { FILE: ast/tree_test.go function TestTreeCreation (line 10) | func TestTreeCreation(t *testing.T) { function TestTreeRawCreation (line 19) | func TestTreeRawCreation(t *testing.T) { FILE: cmd/nash/cli.go type Interrupted (line 18) | type Interrupted interface type Ignored (line 22) | type Ignored interface type BlockNotFinished (line 26) | type BlockNotFinished interface function execFn (line 33) | func execFn(shell *nash.Shell, fnDef sh.FnDef, args []sh.Obj) { function importInitFile (line 54) | func importInitFile(shell *nash.Shell, initFile string) (bool, error) { function loadInit (line 68) | func loadInit(shell *nash.Shell) error { function cli (line 92) | func cli(shell *nash.Shell) error { function docli (line 136) | func docli(shell *nash.Shell, rline *readline.Instance) error { FILE: cmd/nash/completer.go type Completer (line 15) | type Completer struct method Do (line 25) | func (c *Completer) Do(line []rune, pos int) ([][]rune, int) { function NewCompleter (line 21) | func NewCompleter(op *readline.Operation, term *readline.Terminal, sh *n... FILE: cmd/nash/env.go function NashPath (line 9) | func NashPath() (string, error) { function NashRoot (line 18) | func NashRoot() (string, error) { function home (line 28) | func home() (string, error) { FILE: cmd/nash/env_test.go function TestLoadNASHPATH (line 14) | func TestLoadNASHPATH(t *testing.T) { function TestLoadNASHROOT (line 45) | func TestLoadNASHROOT(t *testing.T) { function runTests (line 81) | func runTests(t *testing.T, testfunc func() (string, error), cases []Env... type EnvTest (line 102) | type EnvTest struct function clearenv (line 108) | func clearenv(t *testing.T) func() { function export (line 126) | func export(t *testing.T, env map[string]string) { function home (line 137) | func home(t *testing.T) string { FILE: cmd/nash/install.go function NashLibDir (line 11) | func NashLibDir(nashpath string) string { function InstallLib (line 16) | func InstallLib(nashpath string, sourcepath string) error { function installLib (line 29) | func installLib(targetdir string, sourcepath string) error { function copyfile (line 56) | func copyfile(targetdir string, sourcefilepath string) error { FILE: cmd/nash/install_test.go function TestInstallLib (line 15) | func TestInstallLib(t *testing.T) { function TestSourcePathCantBeEqualToNashLibDir (line 188) | func TestSourcePathCantBeEqualToNashLibDir(t *testing.T) { function TestSourcePathCantBeInsideNashLibDir (line 199) | func TestSourcePathCantBeInsideNashLibDir(t *testing.T) { function TestRelativeSourcePathCantBeInsideNashLibDir (line 210) | func TestRelativeSourcePathCantBeInsideNashLibDir(t *testing.T) { function TestFailsOnUnexistentSourcePath (line 225) | func TestFailsOnUnexistentSourcePath(t *testing.T) { function TestFailsOnUnreadableSourcePath (line 232) | func TestFailsOnUnreadableSourcePath(t *testing.T) { function TestFailsOnUnreadableFileInsideSourcePath (line 243) | func TestFailsOnUnreadableFileInsideSourcePath(t *testing.T) { function TestFailsOnUnwriteableNashPath (line 259) | func TestFailsOnUnwriteableNashPath(t *testing.T) { function TestFailsOnUnwriteableFileInsideNashLibdir (line 272) | func TestFailsOnUnwriteableFileInsideNashLibdir(t *testing.T) { function assertInstallLibFails (line 293) | func assertInstallLibFails(t *testing.T, nashpath string, sourcepath str... constant writeOnly (line 302) | writeOnly = 0333 constant readOnly (line 303) | readOnly = 0555 FILE: cmd/nash/main.go function init (line 31) | func init() { function main (line 45) | func main() { function initShell (line 117) | func initShell() (*nash.Shell, error) { FILE: cmd/nash/rpc.go function serveConn (line 12) | func serveConn(sh *nash.Shell, conn net.Conn) { function startNashd (line 54) | func startNashd(sh *nash.Shell, socketPath string) { FILE: cmd/nash/vendor/github.com/chzyer/readline/ansi_windows.go constant _ (line 16) | _ = uint16(0) constant COLOR_FBLUE (line 17) | COLOR_FBLUE = 0x0001 constant COLOR_FGREEN (line 18) | COLOR_FGREEN = 0x0002 constant COLOR_FRED (line 19) | COLOR_FRED = 0x0004 constant COLOR_FINTENSITY (line 20) | COLOR_FINTENSITY = 0x0008 constant COLOR_BBLUE (line 22) | COLOR_BBLUE = 0x0010 constant COLOR_BGREEN (line 23) | COLOR_BGREEN = 0x0020 constant COLOR_BRED (line 24) | COLOR_BRED = 0x0040 constant COLOR_BINTENSITY (line 25) | COLOR_BINTENSITY = 0x0080 constant COMMON_LVB_UNDERSCORE (line 27) | COMMON_LVB_UNDERSCORE = 0x8000 type ANSIWriter (line 52) | type ANSIWriter struct method Close (line 67) | func (a *ANSIWriter) Close() error { method Write (line 193) | func (a *ANSIWriter) Write(b []byte) (int, error) { function NewANSIWriter (line 59) | func NewANSIWriter(w io.Writer) *ANSIWriter { type ANSIWriterCtx (line 72) | type ANSIWriterCtx struct method Flush (line 86) | func (a *ANSIWriterCtx) Flush() { method process (line 90) | func (a *ANSIWriterCtx) process(r rune) bool { method ioloopEscSeq (line 120) | func (a *ANSIWriterCtx) ioloopEscSeq(w *bufio.Writer, r rune, argptr *... function NewANSIWriterCtx (line 80) | func NewANSIWriterCtx(target io.Writer) *ANSIWriterCtx { function killLines (line 210) | func killLines() error { function eraseLine (line 232) | func eraseLine() error { FILE: cmd/nash/vendor/github.com/chzyer/readline/complete.go type AutoCompleter (line 10) | type AutoCompleter interface type TabCompleter (line 21) | type TabCompleter struct method Do (line 23) | func (t *TabCompleter) Do([]rune, int) ([][]rune, int) { type opCompleter (line 27) | type opCompleter struct method doSelect (line 49) | func (o *opCompleter) doSelect() { method nextCandidate (line 59) | func (o *opCompleter) nextCandidate(i int) { method OnComplete (line 67) | func (o *opCompleter) OnComplete() bool { method IsInCompleteSelectMode (line 118) | func (o *opCompleter) IsInCompleteSelectMode() bool { method IsInCompleteMode (line 122) | func (o *opCompleter) IsInCompleteMode() bool { method HandleCompleteSelect (line 126) | func (o *opCompleter) HandleCompleteSelect(r rune) bool { method getMatrixSize (line 181) | func (o *opCompleter) getMatrixSize() int { method OnWidthChange (line 189) | func (o *opCompleter) OnWidthChange(newWidth int) { method CompleteRefresh (line 193) | func (o *opCompleter) CompleteRefresh() { method aggCandidate (line 247) | func (o *opCompleter) aggCandidate(candidate [][]rune) int { method EnterCompleteSelectMode (line 264) | func (o *opCompleter) EnterCompleteSelectMode() { method EnterCompleteMode (line 270) | func (o *opCompleter) EnterCompleteMode(offset int, candidate [][]rune) { method ExitCompleteSelectMode (line 277) | func (o *opCompleter) ExitCompleteSelectMode() { method ExitCompleteMode (line 285) | func (o *opCompleter) ExitCompleteMode(revent bool) { function newOpCompleter (line 41) | func newOpCompleter(w io.Writer, op *Operation, width int) *opCompleter { FILE: cmd/nash/vendor/github.com/chzyer/readline/complete_helper.go type DynamicCompleteFunc (line 9) | type DynamicCompleteFunc type PrefixCompleterInterface (line 11) | type PrefixCompleterInterface interface type DynamicPrefixCompleterInterface (line 19) | type DynamicPrefixCompleterInterface interface type PrefixCompleter (line 25) | type PrefixCompleter struct method Tree (line 32) | func (p *PrefixCompleter) Tree(prefix string) string { method Print (line 54) | func (p *PrefixCompleter) Print(prefix string, level int, buf *bytes.B... method IsDynamic (line 58) | func (p *PrefixCompleter) IsDynamic() bool { method GetName (line 62) | func (p *PrefixCompleter) GetName() []rune { method GetDynamicNames (line 66) | func (p *PrefixCompleter) GetDynamicNames(line []rune) [][]rune { method GetChildren (line 74) | func (p *PrefixCompleter) GetChildren() []PrefixCompleterInterface { method SetChildren (line 78) | func (p *PrefixCompleter) SetChildren(children []PrefixCompleterInterf... method Do (line 103) | func (p *PrefixCompleter) Do(line []rune, pos int) (newLine [][]rune, ... function Print (line 38) | func Print(p PrefixCompleterInterface, prefix string, level int, buf *by... function NewPrefixCompleter (line 82) | func NewPrefixCompleter(pc ...PrefixCompleterInterface) *PrefixCompleter { function PcItem (line 86) | func PcItem(name string, pc ...PrefixCompleterInterface) *PrefixCompleter { function PcItemDynamic (line 95) | func PcItemDynamic(callback DynamicCompleteFunc, pc ...PrefixCompleterIn... function Do (line 107) | func Do(p PrefixCompleterInterface, line []rune, pos int) (newLine [][]r... function doInternal (line 111) | func doInternal(p PrefixCompleterInterface, line []rune, pos int, origLi... FILE: cmd/nash/vendor/github.com/chzyer/readline/complete_segment.go type SegmentCompleter (line 3) | type SegmentCompleter interface type dumpSegmentCompleter (line 20) | type dumpSegmentCompleter struct method DoSegment (line 24) | func (d *dumpSegmentCompleter) DoSegment(segment [][]rune, n int) [][]... function SegmentFunc (line 28) | func SegmentFunc(f func([][]rune, int) [][]rune) AutoCompleter { function SegmentAutoComplete (line 32) | func SegmentAutoComplete(completer SegmentCompleter) *SegmentComplete { type SegmentComplete (line 38) | type SegmentComplete struct method Do (line 72) | func (c *SegmentComplete) Do(line []rune, pos int) (newLine [][]rune, ... function RetSegment (line 42) | func RetSegment(segments [][]rune, cands [][]rune, idx int) ([][]rune, i... function SplitSegment (line 54) | func SplitSegment(line []rune, pos int) ([][]rune, int) { FILE: cmd/nash/vendor/github.com/chzyer/readline/complete_segment_test.go function rs (line 10) | func rs(s [][]rune) []string { function sr (line 18) | func sr(s ...string) [][]rune { function TestRetSegment (line 26) | func TestRetSegment(t *testing.T) { function TestSplitSegment (line 58) | func TestSplitSegment(t *testing.T) { type Tree (line 88) | type Tree struct function TestSegmentCompleter (line 93) | func TestSegmentCompleter(t *testing.T) { FILE: cmd/nash/vendor/github.com/chzyer/readline/example/readline-demo/readline-demo.go function usage (line 15) | func usage(w io.Writer) { function listFiles (line 21) | func listFiles(path string) func(string) []string { function main (line 64) | func main() { FILE: cmd/nash/vendor/github.com/chzyer/readline/example/readline-im/readline-im.go function main (line 12) | func main() { FILE: cmd/nash/vendor/github.com/chzyer/readline/example/readline-multiline/readline-multiline.go function main (line 9) | func main() { FILE: cmd/nash/vendor/github.com/chzyer/readline/example/readline-pass-strength/readline-pass-strength.go constant Cyan (line 30) | Cyan = 36 constant Green (line 31) | Green = 32 constant Magenta (line 32) | Magenta = 35 constant Red (line 33) | Red = 31 constant Yellow (line 34) | Yellow = 33 constant BackgroundRed (line 35) | BackgroundRed = 41 function ColorEscape (line 42) | func ColorEscape(color int) string { function Colorize (line 47) | func Colorize(msg string, color int) string { function createStrengthPrompt (line 51) | func createStrengthPrompt(password []rune) string { function main (line 82) | func main() { FILE: cmd/nash/vendor/github.com/chzyer/readline/example/readline-remote/readline-remote-client/client.go function main (line 5) | func main() { FILE: cmd/nash/vendor/github.com/chzyer/readline/example/readline-remote/readline-remote-server/server.go function main (line 9) | func main() { FILE: cmd/nash/vendor/github.com/chzyer/readline/history.go type hisItem (line 12) | type hisItem struct method Clean (line 18) | func (h *hisItem) Clean() { type opHistory (line 23) | type opHistory struct method Reset (line 40) | func (o *opHistory) Reset() { method IsHistoryClosed (line 45) | func (o *opHistory) IsHistoryClosed() bool { method Init (line 51) | func (o *opHistory) Init() { method initHistory (line 57) | func (o *opHistory) initHistory() { method historyUpdatePath (line 64) | func (o *opHistory) historyUpdatePath(path string) { method Compact (line 95) | func (o *opHistory) Compact() { method Rewrite (line 101) | func (o *opHistory) Rewrite() { method rewriteLocked (line 107) | func (o *opHistory) rewriteLocked() { method Close (line 137) | func (o *opHistory) Close() { method FindBck (line 145) | func (o *opHistory) FindBck(isNewSearch bool, rs []rune, start int) (i... method FindFwd (line 165) | func (o *opHistory) FindFwd(isNewSearch bool, rs []rune, start int) (i... method showItem (line 193) | func (o *opHistory) showItem(obj interface{}) []rune { method Prev (line 201) | func (o *opHistory) Prev() []rune { method Next (line 213) | func (o *opHistory) Next() ([]rune, bool) { method debug (line 226) | func (o *opHistory) debug() { method New (line 234) | func (o *opHistory) New(current []rune) (err error) { method Revert (line 278) | func (o *opHistory) Revert() { method Update (line 283) | func (o *opHistory) Update(s []rune, commit bool) (err error) { method Push (line 308) | func (o *opHistory) Push(s []rune) { function newOpHistory (line 32) | func newOpHistory(cfg *Config) (o *opHistory) { FILE: cmd/nash/vendor/github.com/chzyer/readline/operation.go type InterruptError (line 12) | type InterruptError struct method Error (line 16) | func (*InterruptError) Error() string { type Operation (line 20) | type Operation struct method SetPrompt (line 81) | func (o *Operation) SetPrompt(s string) { method SetMaskRune (line 85) | func (o *Operation) SetMaskRune(r rune) { method ioloop (line 89) | func (o *Operation) ioloop() { method Stderr (line 296) | func (o *Operation) Stderr() io.Writer { method Stdout (line 300) | func (o *Operation) Stdout() io.Writer { method String (line 304) | func (o *Operation) String() (string, error) { method Runes (line 309) | func (o *Operation) Runes() ([]rune, error) { method PasswordEx (line 330) | func (o *Operation) PasswordEx(prompt string, l Listener) ([]byte, err... method GenPasswordConfig (line 337) | func (o *Operation) GenPasswordConfig() *Config { method PasswordWithConfig (line 341) | func (o *Operation) PasswordWithConfig(cfg *Config) ([]byte, error) { method Password (line 349) | func (o *Operation) Password(prompt string) ([]byte, error) { method SetTitle (line 353) | func (o *Operation) SetTitle(t string) { method Slice (line 357) | func (o *Operation) Slice() ([]byte, error) { method Close (line 365) | func (o *Operation) Close() { method SetHistoryPath (line 369) | func (o *Operation) SetHistoryPath(path string) { method IsNormalMode (line 377) | func (o *Operation) IsNormalMode() bool { method SetConfig (line 381) | func (op *Operation) SetConfig(cfg *Config) (*Config, error) { method ResetHistory (line 412) | func (o *Operation) ResetHistory() { method SaveHistory (line 418) | func (o *Operation) SaveHistory(content string) error { method Refresh (line 422) | func (o *Operation) Refresh() { method Clean (line 428) | func (o *Operation) Clean() { type wrapWriter (line 34) | type wrapWriter struct method Write (line 40) | func (w *wrapWriter) Write(b []byte) (int, error) { function NewOperation (line 59) | func NewOperation(t *Terminal, cfg *Config) *Operation { function FuncListener (line 432) | func FuncListener(f func(line []rune, pos int, key rune) (newLine []rune... type DumpListener (line 436) | type DumpListener struct method OnChange (line 440) | func (d *DumpListener) OnChange(line []rune, pos int, key rune) (newLi... type Listener (line 444) | type Listener interface FILE: cmd/nash/vendor/github.com/chzyer/readline/password.go type opPassword (line 3) | type opPassword struct method ExitPasswordMode (line 12) | func (o *opPassword) ExitPasswordMode() { method EnterPasswordMode (line 17) | func (o *opPassword) EnterPasswordMode(cfg *Config) (err error) { method PasswordConfig (line 22) | func (o *opPassword) PasswordConfig() *Config { function newOpPassword (line 8) | func newOpPassword(o *Operation) *opPassword { FILE: cmd/nash/vendor/github.com/chzyer/readline/rawreader_windows.go constant VK_CANCEL (line 8) | VK_CANCEL = 0x03 constant VK_BACK (line 9) | VK_BACK = 0x08 constant VK_TAB (line 10) | VK_TAB = 0x09 constant VK_RETURN (line 11) | VK_RETURN = 0x0D constant VK_SHIFT (line 12) | VK_SHIFT = 0x10 constant VK_CONTROL (line 13) | VK_CONTROL = 0x11 constant VK_MENU (line 14) | VK_MENU = 0x12 constant VK_ESCAPE (line 15) | VK_ESCAPE = 0x1B constant VK_LEFT (line 16) | VK_LEFT = 0x25 constant VK_UP (line 17) | VK_UP = 0x26 constant VK_RIGHT (line 18) | VK_RIGHT = 0x27 constant VK_DOWN (line 19) | VK_DOWN = 0x28 constant VK_DELETE (line 20) | VK_DELETE = 0x2E constant VK_LSHIFT (line 21) | VK_LSHIFT = 0xA0 constant VK_RSHIFT (line 22) | VK_RSHIFT = 0xA1 constant VK_LCONTROL (line 23) | VK_LCONTROL = 0xA2 constant VK_RCONTROL (line 24) | VK_RCONTROL = 0xA3 type RawReader (line 29) | type RawReader struct method Read (line 40) | func (r *RawReader) Read(buf []byte) (int, error) { method writeEsc (line 112) | func (r *RawReader) writeEsc(b []byte, char rune) (int, error) { method write (line 118) | func (r *RawReader) write(b []byte, char rune) (int, error) { method Close (line 123) | func (r *RawReader) Close() error { function NewRawReader (line 34) | func NewRawReader() *RawReader { FILE: cmd/nash/vendor/github.com/chzyer/readline/readline.go type Instance (line 22) | type Instance struct method ResetHistory (line 163) | func (i *Instance) ResetHistory() { method SetPrompt (line 167) | func (i *Instance) SetPrompt(s string) { method SetMaskRune (line 171) | func (i *Instance) SetMaskRune(r rune) { method SetHistoryPath (line 176) | func (i *Instance) SetHistoryPath(p string) { method Stdout (line 181) | func (i *Instance) Stdout() io.Writer { method Stderr (line 186) | func (i *Instance) Stderr() io.Writer { method SetVimMode (line 191) | func (i *Instance) SetVimMode(on bool) { method IsVimMode (line 195) | func (i *Instance) IsVimMode() bool { method GenPasswordConfig (line 199) | func (i *Instance) GenPasswordConfig() *Config { method ReadPasswordWithConfig (line 204) | func (i *Instance) ReadPasswordWithConfig(cfg *Config) ([]byte, error) { method ReadPasswordEx (line 208) | func (i *Instance) ReadPasswordEx(prompt string, l Listener) ([]byte, ... method ReadPassword (line 212) | func (i *Instance) ReadPassword(prompt string) ([]byte, error) { method Line (line 229) | func (i *Instance) Line() *Result { method Readline (line 235) | func (i *Instance) Readline() (string, error) { method SaveHistory (line 239) | func (i *Instance) SaveHistory(content string) error { method ReadSlice (line 244) | func (i *Instance) ReadSlice() ([]byte, error) { method Close (line 249) | func (i *Instance) Close() error { method Clean (line 256) | func (i *Instance) Clean() { method Write (line 260) | func (i *Instance) Write(b []byte) (int, error) { method SetConfig (line 264) | func (i *Instance) SetConfig(cfg *Config) *Config { method Refresh (line 275) | func (i *Instance) Refresh() { type Config (line 28) | type Config struct method useInteractive (line 78) | func (c *Config) useInteractive() bool { method Init (line 85) | func (c *Config) Init() error { method Clone (line 137) | func (c Config) Clone() *Config { method SetListener (line 142) | func (c *Config) SetListener(f func(line []rune, pos int, key rune) (n... function NewEx (line 146) | func NewEx(cfg *Config) (*Instance, error) { function New (line 159) | func New(prompt string) (*Instance, error) { type Result (line 216) | type Result struct method CanContinue (line 221) | func (l *Result) CanContinue() bool { method CanBreak (line 225) | func (l *Result) CanBreak() bool { FILE: cmd/nash/vendor/github.com/chzyer/readline/readline_test.go function TestRace (line 8) | func TestRace(t *testing.T) { FILE: cmd/nash/vendor/github.com/chzyer/readline/remote.go type MsgType (line 15) | type MsgType constant T_DATA (line 18) | T_DATA = MsgType(iota) constant T_WIDTH (line 19) | T_WIDTH constant T_WIDTH_REPORT (line 20) | T_WIDTH_REPORT constant T_ISTTY_REPORT (line 21) | T_ISTTY_REPORT constant T_RAW (line 22) | T_RAW constant T_ERAW (line 23) | T_ERAW constant T_EOF (line 24) | T_EOF type RemoteSvr (line 27) | type RemoteSvr struct method init (line 78) | func (r *RemoteSvr) init(buf *bufio.Reader) error { method HandleConfig (line 102) | func (r *RemoteSvr) HandleConfig(cfg *Config) { method IsTerminal (line 116) | func (r *RemoteSvr) IsTerminal() bool { method checkEOF (line 120) | func (r *RemoteSvr) checkEOF() error { method Read (line 127) | func (r *RemoteSvr) Read(b []byte) (int, error) { method writeMsg (line 152) | func (r *RemoteSvr) writeMsg(m *Message) error { method Write (line 159) | func (r *RemoteSvr) Write(b []byte) (int, error) { method EnterRawMode (line 166) | func (r *RemoteSvr) EnterRawMode() error { method ExitRawMode (line 170) | func (r *RemoteSvr) ExitRawMode() error { method writeLoop (line 174) | func (r *RemoteSvr) writeLoop() { method Close (line 192) | func (r *RemoteSvr) Close() { method readLoop (line 199) | func (r *RemoteSvr) readLoop(buf *bufio.Reader) { method GotIsTerminal (line 229) | func (r *RemoteSvr) GotIsTerminal(data []byte) { method GotReportWidth (line 237) | func (r *RemoteSvr) GotReportWidth(data []byte) { method GetWidth (line 244) | func (r *RemoteSvr) GetWidth() int { type writeReply (line 42) | type writeReply struct type writeCtx (line 47) | type writeCtx struct function newWriteCtx (line 52) | func newWriteCtx(msg *Message) *writeCtx { function NewRemoteSvr (line 59) | func NewRemoteSvr(conn net.Conn) (*RemoteSvr, error) { type Message (line 250) | type Message struct method WriteTo (line 275) | func (m *Message) WriteTo(w io.Writer) (int, error) { function ReadMessage (line 255) | func ReadMessage(r io.Reader) (*Message, error) { function NewMessage (line 271) | func NewMessage(t MsgType, data []byte) *Message { type RemoteCli (line 286) | type RemoteCli struct method MarkIsTerminal (line 305) | func (r *RemoteCli) MarkIsTerminal(is bool) { method init (line 309) | func (r *RemoteCli) init() error { method writeMsg (line 329) | func (r *RemoteCli) writeMsg(m *Message) error { method Write (line 336) | func (r *RemoteCli) Write(b []byte) (int, error) { method reportWidth (line 344) | func (r *RemoteCli) reportWidth() error { method reportIsTerminal (line 356) | func (r *RemoteCli) reportIsTerminal() error { method readLoop (line 376) | func (r *RemoteCli) readLoop() { method ServeBy (line 394) | func (r *RemoteCli) ServeBy(source io.Reader) error { method Close (line 413) | func (r *RemoteCli) Close() { method Serve (line 417) | func (r *RemoteCli) Serve() error { function NewRemoteCli (line 297) | func NewRemoteCli(conn net.Conn) (*RemoteCli, error) { function ListenRemote (line 421) | func ListenRemote(n, addr string, cfg *Config, h func(*Instance), onList... function HandleConn (line 448) | func HandleConn(cfg Config, conn net.Conn) (*Instance, error) { function DialRemote (line 462) | func DialRemote(n, addr string) error { FILE: cmd/nash/vendor/github.com/chzyer/readline/runebuf.go type runeBufferBck (line 11) | type runeBufferBck struct type RuneBuffer (line 16) | type RuneBuffer struct method OnWidthChange (line 35) | func (r *RuneBuffer) OnWidthChange(newWidth int) { method Backup (line 41) | func (r *RuneBuffer) Backup() { method Restore (line 47) | func (r *RuneBuffer) Restore() { method SetConfig (line 68) | func (r *RuneBuffer) SetConfig(cfg *Config) { method SetMask (line 75) | func (r *RuneBuffer) SetMask(m rune) { method CurrentWidth (line 81) | func (r *RuneBuffer) CurrentWidth(x int) int { method PromptLen (line 87) | func (r *RuneBuffer) PromptLen() int { method promptLen (line 94) | func (r *RuneBuffer) promptLen() int { method RuneSlice (line 98) | func (r *RuneBuffer) RuneSlice(i int) []rune { method Runes (line 112) | func (r *RuneBuffer) Runes() []rune { method Pos (line 120) | func (r *RuneBuffer) Pos() int { method Len (line 126) | func (r *RuneBuffer) Len() int { method MoveToLineStart (line 132) | func (r *RuneBuffer) MoveToLineStart() { method MoveBackward (line 141) | func (r *RuneBuffer) MoveBackward() { method WriteString (line 150) | func (r *RuneBuffer) WriteString(s string) { method WriteRune (line 154) | func (r *RuneBuffer) WriteRune(s rune) { method WriteRunes (line 158) | func (r *RuneBuffer) WriteRunes(s []rune) { method MoveForward (line 166) | func (r *RuneBuffer) MoveForward() { method IsCursorInEnd (line 175) | func (r *RuneBuffer) IsCursorInEnd() bool { method Replace (line 181) | func (r *RuneBuffer) Replace(ch rune) { method Erase (line 187) | func (r *RuneBuffer) Erase() { method Delete (line 194) | func (r *RuneBuffer) Delete() (success bool) { method DeleteWord (line 205) | func (r *RuneBuffer) DeleteWord() { method MoveToPrevWord (line 224) | func (r *RuneBuffer) MoveToPrevWord() (success bool) { method KillFront (line 243) | func (r *RuneBuffer) KillFront() { method Kill (line 256) | func (r *RuneBuffer) Kill() { method Transpose (line 262) | func (r *RuneBuffer) Transpose() { method MoveToNextWord (line 282) | func (r *RuneBuffer) MoveToNextWord() { method MoveToEndWord (line 295) | func (r *RuneBuffer) MoveToEndWord() { method BackEscapeWord (line 317) | func (r *RuneBuffer) BackEscapeWord() { method Backspace (line 335) | func (r *RuneBuffer) Backspace() { method MoveToLineEnd (line 346) | func (r *RuneBuffer) MoveToLineEnd() { method LineCount (line 356) | func (r *RuneBuffer) LineCount(width int) int { method MoveTo (line 364) | func (r *RuneBuffer) MoveTo(ch rune, prevChar, reverse bool) (success ... method isInLineEdge (line 393) | func (r *RuneBuffer) isInLineEdge() bool { method getSplitByLine (line 401) | func (r *RuneBuffer) getSplitByLine(rs []rune) []string { method IdxLine (line 405) | func (r *RuneBuffer) IdxLine(width int) int { method idxLine (line 411) | func (r *RuneBuffer) idxLine(width int) int { method CursorLineCount (line 419) | func (r *RuneBuffer) CursorLineCount() int { method Refresh (line 423) | func (r *RuneBuffer) Refresh(f func()) { method SetOffset (line 441) | func (r *RuneBuffer) SetOffset(offset string) { method print (line 447) | func (r *RuneBuffer) print() { method output (line 452) | func (r *RuneBuffer) output() []byte { method Reset (line 485) | func (r *RuneBuffer) Reset() []rune { method calWidth (line 492) | func (r *RuneBuffer) calWidth(m int) int { method SetStyle (line 499) | func (r *RuneBuffer) SetStyle(start, end int, style string) { method SetWithIdx (line 517) | func (r *RuneBuffer) SetWithIdx(idx int, buf []rune) { method Set (line 524) | func (r *RuneBuffer) Set(buf []rune) { method SetPrompt (line 528) | func (r *RuneBuffer) SetPrompt(prompt string) { method cleanOutput (line 534) | func (r *RuneBuffer) cleanOutput(w io.Writer, idxLine int) { method Clean (line 556) | func (r *RuneBuffer) Clean() { method clean (line 562) | func (r *RuneBuffer) clean() { method cleanWithIdxLine (line 566) | func (r *RuneBuffer) cleanWithIdxLine(idxLine int) { function NewRuneBuffer (line 57) | func NewRuneBuffer(w io.Writer, prompt string, cfg *Config, width int) *... FILE: cmd/nash/vendor/github.com/chzyer/readline/runes.go type Runes (line 12) | type Runes struct method EqualRune (line 14) | func (Runes) EqualRune(a, b rune, fold bool) bool { method EqualRuneFold (line 32) | func (r Runes) EqualRuneFold(a, b rune) bool { method EqualFold (line 36) | func (r Runes) EqualFold(a, b []rune) bool { method Equal (line 50) | func (Runes) Equal(a, b []rune) bool { method IndexAllBckEx (line 62) | func (rs Runes) IndexAllBckEx(r, sub []rune, fold bool) int { method IndexAllBck (line 79) | func (rs Runes) IndexAllBck(r, sub []rune) int { method IndexAll (line 84) | func (rs Runes) IndexAll(r, sub []rune) int { method IndexAllEx (line 88) | func (rs Runes) IndexAllEx(r, sub []rune, fold bool) int { method Index (line 107) | func (Runes) Index(r rune, rs []rune) int { method ColorFilter (line 116) | func (Runes) ColorFilter(r []rune) []rune { method Width (line 146) | func (Runes) Width(r rune) int { method WidthAll (line 159) | func (Runes) WidthAll(r []rune) (length int) { method Backspace (line 166) | func (Runes) Backspace(r []rune) []byte { method Copy (line 170) | func (Runes) Copy(r []rune) []rune { method HasPrefixFold (line 176) | func (Runes) HasPrefixFold(r, prefix []rune) bool { method HasPrefix (line 183) | func (Runes) HasPrefix(r, prefix []rune) bool { method Aggregate (line 190) | func (Runes) Aggregate(candicate [][]rune) (same []rune, size int) { method TrimSpaceLeft (line 214) | func (Runes) TrimSpaceLeft(in []rune) []rune { FILE: cmd/nash/vendor/github.com/chzyer/readline/runes/runes.go function Equal (line 11) | func Equal(a, b []rune) bool { function IndexAllBck (line 24) | func IndexAllBck(r, sub []rune) int { function IndexAll (line 41) | func IndexAll(r, sub []rune) int { function Index (line 60) | func Index(r rune, rs []rune) int { function ColorFilter (line 69) | func ColorFilter(r []rune) []rune { function Width (line 99) | func Width(r rune) int { function WidthAll (line 109) | func WidthAll(r []rune) (length int) { function Backspace (line 116) | func Backspace(r []rune) []byte { function Copy (line 120) | func Copy(r []rune) []rune { function HasPrefix (line 126) | func HasPrefix(r, prefix []rune) bool { function Aggregate (line 133) | func Aggregate(candicate [][]rune) (same []rune, size int) { FILE: cmd/nash/vendor/github.com/chzyer/readline/runes/runes_test.go type twidth (line 8) | type twidth struct function TestRuneWidth (line 13) | func TestRuneWidth(t *testing.T) { type tagg (line 27) | type tagg struct function TestAggRunes (line 33) | func TestAggRunes(t *testing.T) { FILE: cmd/nash/vendor/github.com/chzyer/readline/runes_test.go type twidth (line 8) | type twidth struct function TestRuneWidth (line 13) | func TestRuneWidth(t *testing.T) { type tagg (line 27) | type tagg struct function TestAggRunes (line 33) | func TestAggRunes(t *testing.T) { FILE: cmd/nash/vendor/github.com/chzyer/readline/std.go function getInstance (line 21) | func getInstance() *Instance { function SetHistoryPath (line 34) | func SetHistoryPath(fp string) { function SetAutoComplete (line 42) | func SetAutoComplete(completer AutoCompleter) { function AddHistory (line 51) | func AddHistory(content string) error { function Password (line 56) | func Password(prompt string) ([]byte, error) { function Line (line 62) | func Line(prompt string) (string, error) { type CancelableStdin (line 68) | type CancelableStdin struct method ioloop (line 88) | func (c *CancelableStdin) ioloop() { method Read (line 101) | func (c *CancelableStdin) Read(b []byte) (n int, err error) { method Close (line 115) | func (c *CancelableStdin) Close() error { function NewCancelableStdin (line 78) | func NewCancelableStdin(r io.Reader) *CancelableStdin { FILE: cmd/nash/vendor/github.com/chzyer/readline/std_windows.go function init (line 5) | func init() { FILE: cmd/nash/vendor/github.com/chzyer/readline/term.go type State (line 26) | type State struct function IsTerminal (line 31) | func IsTerminal(fd int) bool { function MakeRaw (line 40) | func MakeRaw(fd int) (*State, error) { function GetState (line 64) | func GetState(fd int) (*State, error) { function restoreTerm (line 75) | func restoreTerm(fd int, state *State) error { function GetSize (line 81) | func GetSize(fd int) (width, height int, err error) { function ReadPassword (line 93) | func ReadPassword(fd int) ([]byte, error) { FILE: cmd/nash/vendor/github.com/chzyer/readline/term_bsd.go constant ioctlReadTermios (line 11) | ioctlReadTermios = syscall.TIOCGETA constant ioctlWriteTermios (line 12) | ioctlWriteTermios = syscall.TIOCSETA FILE: cmd/nash/vendor/github.com/chzyer/readline/term_linux.go constant ioctlReadTermios (line 10) | ioctlReadTermios = 0x5401 constant ioctlWriteTermios (line 11) | ioctlWriteTermios = 0x5402 FILE: cmd/nash/vendor/github.com/chzyer/readline/term_windows.go constant enableLineInput (line 26) | enableLineInput = 2 constant enableEchoInput (line 27) | enableEchoInput = 4 constant enableProcessedInput (line 28) | enableProcessedInput = 1 constant enableWindowInput (line 29) | enableWindowInput = 8 constant enableMouseInput (line 30) | enableMouseInput = 16 constant enableInsertMode (line 31) | enableInsertMode = 32 constant enableQuickEditMode (line 32) | enableQuickEditMode = 64 constant enableExtendedFlags (line 33) | enableExtendedFlags = 128 constant enableAutoPosition (line 34) | enableAutoPosition = 256 constant enableProcessedOutput (line 35) | enableProcessedOutput = 1 constant enableWrapAtEolOutput (line 36) | enableWrapAtEolOutput = 2 type coord (line 48) | type coord struct type smallRect (line 52) | type smallRect struct type consoleScreenBufferInfo (line 58) | type consoleScreenBufferInfo struct type State (line 67) | type State struct function IsTerminal (line 72) | func IsTerminal(fd int) bool { function MakeRaw (line 81) | func MakeRaw(fd int) (*State, error) { function GetState (line 97) | func GetState(fd int) (*State, error) { function restoreTerm (line 108) | func restoreTerm(fd int, state *State) error { function GetSize (line 114) | func GetSize(fd int) (width, height int, err error) { function ReadPassword (line 126) | func ReadPassword(fd int) ([]byte, error) { FILE: cmd/nash/vendor/github.com/chzyer/readline/terminal.go type Terminal (line 13) | type Terminal struct method SleepToResume (line 44) | func (t *Terminal) SleepToResume() { method EnterRawMode (line 57) | func (t *Terminal) EnterRawMode() (err error) { method ExitRawMode (line 61) | func (t *Terminal) ExitRawMode() (err error) { method Write (line 65) | func (t *Terminal) Write(b []byte) (int, error) { method GetOffset (line 74) | func (t *Terminal) GetOffset(f func(offset string)) { method Print (line 81) | func (t *Terminal) Print(s string) { method PrintRune (line 85) | func (t *Terminal) PrintRune(r rune) { method Readline (line 89) | func (t *Terminal) Readline() *Operation { method ReadRune (line 94) | func (t *Terminal) ReadRune() rune { method IsReading (line 102) | func (t *Terminal) IsReading() bool { method KickRead (line 106) | func (t *Terminal) KickRead() { method PauseRead (line 113) | func (t *Terminal) PauseRead(b bool) { method ioloop (line 121) | func (t *Terminal) ioloop() { method Bell (line 214) | func (t *Terminal) Bell() { method Close (line 218) | func (t *Terminal) Close() error { method SetConfig (line 230) | func (t *Terminal) SetConfig(c *Config) error { function NewTerminal (line 27) | func NewTerminal(cfg *Config) (*Terminal, error) { type termSize (line 69) | type termSize struct FILE: cmd/nash/vendor/github.com/chzyer/readline/utils.go constant CharLineStart (line 21) | CharLineStart = 1 constant CharBackward (line 22) | CharBackward = 2 constant CharInterrupt (line 23) | CharInterrupt = 3 constant CharDelete (line 24) | CharDelete = 4 constant CharLineEnd (line 25) | CharLineEnd = 5 constant CharForward (line 26) | CharForward = 6 constant CharBell (line 27) | CharBell = 7 constant CharCtrlH (line 28) | CharCtrlH = 8 constant CharTab (line 29) | CharTab = 9 constant CharCtrlJ (line 30) | CharCtrlJ = 10 constant CharKill (line 31) | CharKill = 11 constant CharCtrlL (line 32) | CharCtrlL = 12 constant CharEnter (line 33) | CharEnter = 13 constant CharNext (line 34) | CharNext = 14 constant CharPrev (line 35) | CharPrev = 16 constant CharBckSearch (line 36) | CharBckSearch = 18 constant CharFwdSearch (line 37) | CharFwdSearch = 19 constant CharTranspose (line 38) | CharTranspose = 20 constant CharCtrlU (line 39) | CharCtrlU = 21 constant CharCtrlW (line 40) | CharCtrlW = 23 constant CharCtrlZ (line 41) | CharCtrlZ = 26 constant CharEsc (line 42) | CharEsc = 27 constant CharEscapeEx (line 43) | CharEscapeEx = 91 constant CharBackspace (line 44) | CharBackspace = 127 constant MetaBackward (line 48) | MetaBackward rune = -iota - 1 constant MetaForward (line 49) | MetaForward constant MetaDelete (line 50) | MetaDelete constant MetaBackspace (line 51) | MetaBackspace constant MetaTranspose (line 52) | MetaTranspose function WaitForResume (line 58) | func WaitForResume() chan struct{} { function Restore (line 80) | func Restore(fd int, state *State) error { function IsPrintable (line 91) | func IsPrintable(key rune) bool { function escapeExKey (line 97) | func escapeExKey(key *escapeKeyPair) rune { type escapeKeyPair (line 121) | type escapeKeyPair struct method Get2 (line 126) | func (e *escapeKeyPair) Get2() (int, int, bool) { function readEscKey (line 142) | func readEscKey(r rune, reader *bufio.Reader) *escapeKeyPair { function escapeKey (line 160) | func escapeKey(r rune, reader *bufio.Reader) rune { function SplitByLine (line 188) | func SplitByLine(start, screenWidth int, rs []rune) []string { function LineCount (line 207) | func LineCount(screenWidth, w int) int { function IsWordBreak (line 215) | func IsWordBreak(i rune) bool { function GetInt (line 226) | func GetInt(s []string, def int) int { type RawMode (line 237) | type RawMode struct method Enter (line 241) | func (r *RawMode) Enter() (err error) { method Exit (line 246) | func (r *RawMode) Exit() error { function sleep (line 255) | func sleep(n int) { function debugList (line 261) | func debugList(l *list.List) { function Debug (line 270) | func Debug(o ...interface{}) { FILE: cmd/nash/vendor/github.com/chzyer/readline/utils_unix.go type winsize (line 14) | type winsize struct function SuspendMe (line 24) | func SuspendMe() { function getWidth (line 32) | func getWidth(stdoutFd int) int { function GetScreenWidth (line 46) | func GetScreenWidth() int { function ClearScreen (line 55) | func ClearScreen(w io.Writer) (int, error) { function DefaultIsTerminal (line 59) | func DefaultIsTerminal() bool { function GetStdin (line 63) | func GetStdin() int { function DefaultOnWidthChanged (line 74) | func DefaultOnWidthChanged(f func()) { FILE: cmd/nash/vendor/github.com/chzyer/readline/utils_windows.go function SuspendMe (line 10) | func SuspendMe() { function GetStdin (line 13) | func GetStdin() int { function init (line 17) | func init() { function GetScreenWidth (line 22) | func GetScreenWidth() int { function ClearScreen (line 31) | func ClearScreen(_ io.Writer) error { function DefaultIsTerminal (line 35) | func DefaultIsTerminal() bool { function DefaultOnWidthChanged (line 39) | func DefaultOnWidthChanged(func()) { FILE: cmd/nash/vendor/github.com/chzyer/readline/vim.go constant VIM_NORMAL (line 4) | VIM_NORMAL = iota constant VIM_INSERT (line 5) | VIM_INSERT constant VIM_VISUAL (line 6) | VIM_VISUAL type opVim (line 9) | type opVim struct method SetVimMode (line 24) | func (o *opVim) SetVimMode(on bool) { method ExitVimMode (line 32) | func (o *opVim) ExitVimMode() { method IsEnableVimMode (line 36) | func (o *opVim) IsEnableVimMode() bool { method handleVimNormalMovement (line 40) | func (o *opVim) handleVimNormalMovement(r rune, readNext func() rune) ... method handleVimNormalEnterInsert (line 96) | func (o *opVim) handleVimNormalEnterInsert(r rune, readNext func() run... method HandleVimNormal (line 131) | func (o *opVim) HandleVimNormal(r rune, readNext func() rune) (t rune) { method EnterVimInsertMode (line 151) | func (o *opVim) EnterVimInsertMode() { method ExitVimInsertMode (line 155) | func (o *opVim) ExitVimInsertMode() { method HandleVim (line 159) | func (o *opVim) HandleVim(r rune, readNext func() rune) rune { function newVimMode (line 15) | func newVimMode(op *Operation) *opVim { FILE: cmd/nash/vendor/github.com/chzyer/readline/windows_api.go type Kernel (line 17) | type Kernel struct method Wrap (line 105) | func (k *Kernel) Wrap(p *syscall.LazyProc) CallFunc { type short (line 28) | type short type word (line 29) | type word type dword (line 30) | type dword type wchar (line 31) | type wchar type _COORD (line 33) | type _COORD struct method ptr (line 38) | func (c *_COORD) ptr() uintptr { constant EVENT_KEY (line 43) | EVENT_KEY = 0x0001 constant EVENT_MOUSE (line 44) | EVENT_MOUSE = 0x0002 constant EVENT_WINDOW_BUFFER_SIZE (line 45) | EVENT_WINDOW_BUFFER_SIZE = 0x0004 constant EVENT_MENU (line 46) | EVENT_MENU = 0x0008 constant EVENT_FOCUS (line 47) | EVENT_FOCUS = 0x0010 type _KEY_EVENT_RECORD (line 50) | type _KEY_EVENT_RECORD struct type _INPUT_RECORD (line 64) | type _INPUT_RECORD struct type _CONSOLE_SCREEN_BUFFER_INFO (line 70) | type _CONSOLE_SCREEN_BUFFER_INFO struct type _SMALL_RECT (line 78) | type _SMALL_RECT struct type _CONSOLE_CURSOR_INFO (line 85) | type _CONSOLE_CURSOR_INFO struct type CallFunc (line 90) | type CallFunc function NewKernel (line 92) | func NewKernel() *Kernel { function GetConsoleScreenBufferInfo (line 135) | func GetConsoleScreenBufferInfo() (*_CONSOLE_SCREEN_BUFFER_INFO, error) { function GetConsoleCursorInfo (line 144) | func GetConsoleCursorInfo() (*_CONSOLE_CURSOR_INFO, error) { function SetConsoleCursorPosition (line 150) | func SetConsoleCursorPosition(c *_COORD) error { FILE: cmd/nashfmt/main.go function init (line 20) | func init() { function main (line 25) | func main() { FILE: errors/error.go type NashError (line 11) | type NashError struct method SetReason (line 45) | func (e *NashError) SetReason(format string, arg ...interface{}) { method Error (line 49) | func (e *NashError) Error() string { return e.reason } type unfinished (line 16) | type unfinished struct method Unfinished (line 51) | func (e unfinished) Unfinished() bool { return true } type unfinishedBlockError (line 18) | type unfinishedBlockError struct type unfinishedListError (line 23) | type unfinishedListError struct type unfinishedCmdError (line 28) | type unfinishedCmdError struct function NewError (line 34) | func NewError(format string, arg ...interface{}) *NashError { function NewEvalError (line 40) | func NewEvalError(path string, node ast.Node, format string, arg ...inte... function NewUnfinishedBlockError (line 53) | func NewUnfinishedBlockError(name string, it scanner.Token) error { function NewUnfinishedListError (line 60) | func NewUnfinishedListError(name string, it scanner.Token) error { function NewUnfinishedCmdError (line 67) | func NewUnfinishedCmdError(name string, it scanner.Token) error { FILE: examples_test.go function Example (line 10) | func Example() { function tmpdir (line 34) | func tmpdir() (string, func()) { FILE: fuzz.go function Fuzz (line 7) | func Fuzz(data []byte) int { FILE: internal/sh/builtin.go type builtinFn (line 18) | type builtinFn struct method Name (line 47) | func (f *builtinFn) Name() string { method ArgNames (line 51) | func (f *builtinFn) ArgNames() []sh.FnArg { method Start (line 55) | func (f *builtinFn) Start() error { method Wait (line 66) | func (f *builtinFn) Wait() error { method Results (line 71) | func (f *builtinFn) Results() []sh.Obj { method String (line 75) | func (f *builtinFn) String() string { method SetArgs (line 79) | func (f *builtinFn) SetArgs(args []sh.Obj) error { method SetEnviron (line 83) | func (f *builtinFn) SetEnviron(env []string) { method SetStdin (line 88) | func (f *builtinFn) SetStdin(r io.Reader) { method SetStderr (line 91) | func (f *builtinFn) SetStderr(w io.Writer) { method SetStdout (line 94) | func (f *builtinFn) SetStdout(w io.Writer) { method StdoutPipe (line 97) | func (f *builtinFn) StdoutPipe() (io.ReadCloser, error) { method Stdin (line 100) | func (f *builtinFn) Stdin() io.Reader { return f.stdin } method Stdout (line 101) | func (f *builtinFn) Stdout() io.Writer { return f.stdout } method Stderr (line 102) | func (f *builtinFn) Stderr() io.Writer { return f.stderr } function NewBuiltinFn (line 31) | func NewBuiltinFn( FILE: internal/sh/builtin/append.go type appendFn (line 11) | type appendFn struct method ArgNames (line 21) | func (appendfn *appendFn) ArgNames() []sh.FnArg { method Run (line 28) | func (appendfn *appendFn) Run(in io.Reader, out io.Writer, err io.Writ... method SetArgs (line 33) | func (appendfn *appendFn) SetArgs(args []sh.Obj) error { function newAppend (line 17) | func newAppend() *appendFn { FILE: internal/sh/builtin/append_test.go type testcase (line 10) | type testcase struct function testAppend (line 18) | func testAppend(t *testing.T, tc testcase) { function TestAppend (line 50) | func TestAppend(t *testing.T) { FILE: internal/sh/builtin/chdir.go type chdirFn (line 13) | type chdirFn struct method ArgNames (line 22) | func (chdir *chdirFn) ArgNames() []sh.FnArg { method Run (line 28) | func (chdir *chdirFn) Run(in io.Reader, out io.Writer, ioerr io.Writer... method SetArgs (line 36) | func (chdir *chdirFn) SetArgs(args []sh.Obj) error { function newChdir (line 18) | func newChdir() *chdirFn { FILE: internal/sh/builtin/exec_test.go function execSuccess (line 9) | func execSuccess(t *testing.T, scriptContents string) string { function execFailure (line 21) | func execFailure(t *testing.T, scriptContents string) { FILE: internal/sh/builtin/exit.go type exitFn (line 13) | type exitFn struct method ArgNames (line 22) | func (e *exitFn) ArgNames() []sh.FnArg { method Run (line 28) | func (e *exitFn) Run(in io.Reader, out io.Writer, err io.Writer) ([]sh... method SetArgs (line 33) | func (e *exitFn) SetArgs(args []sh.Obj) error { function newExit (line 18) | func newExit() Fn { FILE: internal/sh/builtin/exit_test.go function TestExit (line 9) | func TestExit(t *testing.T) { FILE: internal/sh/builtin/format.go type formatFn (line 12) | type formatFn struct method ArgNames (line 22) | func (f *formatFn) ArgNames() []sh.FnArg { method Run (line 29) | func (f *formatFn) Run(in io.Reader, out io.Writer, err io.Writer) ([]... method SetArgs (line 33) | func (f *formatFn) SetArgs(args []sh.Obj) error { function newFormat (line 18) | func newFormat() *formatFn { FILE: internal/sh/builtin/format_test.go function TestFormat (line 5) | func TestFormat(t *testing.T) { function TestFormatfErrors (line 118) | func TestFormatfErrors(t *testing.T) { FILE: internal/sh/builtin/glob.go type globFn (line 13) | type globFn struct method ArgNames (line 22) | func (p *globFn) ArgNames() []sh.FnArg { method Run (line 26) | func (g *globFn) Run(in io.Reader, out io.Writer, e io.Writer) ([]sh.O... method SetArgs (line 41) | func (g *globFn) SetArgs(args []sh.Obj) error { function newGlob (line 18) | func newGlob() *globFn { FILE: internal/sh/builtin/glob_test.go function setup (line 11) | func setup(t *testing.T) (string, func()) { function createFile (line 22) | func createFile(t *testing.T, path string) { function TestGlobNoResult (line 31) | func TestGlobNoResult(t *testing.T) { function TestGlobOneResult (line 49) | func TestGlobOneResult(t *testing.T) { function TestGlobMultipleResults (line 68) | func TestGlobMultipleResults(t *testing.T) { function TestGlobInvalidPatternError (line 108) | func TestGlobInvalidPatternError(t *testing.T) { function TestFatalFailure (line 122) | func TestFatalFailure(t *testing.T) { FILE: internal/sh/builtin/len.go type lenFn (line 12) | type lenFn struct method ArgNames (line 21) | func (l *lenFn) ArgNames() []sh.FnArg { method Run (line 31) | func (l *lenFn) Run(in io.Reader, out io.Writer, err io.Writer) ([]sh.... method SetArgs (line 35) | func (l *lenFn) SetArgs(args []sh.Obj) error { function newLen (line 17) | func newLen() *lenFn { function lenresult (line 27) | func lenresult(res int) []sh.Obj { FILE: internal/sh/builtin/len_test.go function TestLen (line 10) | func TestLen(t *testing.T) { FILE: internal/sh/builtin/loader.go type Fn (line 12) | type Fn interface type Constructor (line 22) | type Constructor function Constructors (line 26) | func Constructors() map[string]Constructor { FILE: internal/sh/builtin/print.go type printFn (line 12) | type printFn struct method ArgNames (line 22) | func (p *printFn) ArgNames() []sh.FnArg { method Run (line 29) | func (p *printFn) Run(in io.Reader, out io.Writer, err io.Writer) ([]s... method SetArgs (line 34) | func (p *printFn) SetArgs(args []sh.Obj) error { function newPrint (line 18) | func newPrint() *printFn { FILE: internal/sh/builtin/print_test.go function TestPrint (line 5) | func TestPrint(t *testing.T) { function TestPrintErrors (line 85) | func TestPrintErrors(t *testing.T) { FILE: internal/sh/builtin/split.go type splitFn (line 12) | type splitFn struct method ArgNames (line 22) | func (s *splitFn) ArgNames() []sh.FnArg { method Run (line 29) | func (s *splitFn) Run(in io.Reader, out io.Writer, err io.Writer) ([]s... method SetArgs (line 56) | func (s *splitFn) SetArgs(args []sh.Obj) error { function newSplit (line 18) | func newSplit() *splitFn { function splitByList (line 71) | func splitByList(content string, delims []sh.Obj) []string { function splitByFn (line 89) | func splitByFn(content string, splitFunc sh.FnDef) []string { FILE: internal/sh/builtin/split_test.go function TestSplit (line 10) | func TestSplit(t *testing.T) { function TestSplitingByFuncWrongWontPanic (line 65) | func TestSplitingByFuncWrongWontPanic(t *testing.T) { FILE: internal/sh/cmd.go type Cmd (line 17) | type Cmd struct method Stdin (line 64) | func (c *Cmd) Stdin() io.Reader { return c.Cmd.Stdin } method Stdout (line 65) | func (c *Cmd) Stdout() io.Writer { return c.Cmd.Stdout } method Stderr (line 66) | func (c *Cmd) Stderr() io.Writer { return c.Cmd.Stderr } method SetStdin (line 68) | func (c *Cmd) SetStdin(in io.Reader) { c.Cmd.Stdin = in } method SetStdout (line 69) | func (c *Cmd) SetStdout(out io.Writer) { c.Cmd.Stdout = out } method SetStderr (line 70) | func (c *Cmd) SetStderr(err io.Writer) { c.Cmd.Stderr = err } method SetArgs (line 72) | func (c *Cmd) SetArgs(nodeArgs []sh.Obj) error { method Args (line 103) | func (c *Cmd) Args() []ast.Expr { return c.argExprs } method SetEnviron (line 105) | func (c *Cmd) SetEnviron(env []string) { method Wait (line 109) | func (c *Cmd) Wait() error { method Start (line 119) | func (c *Cmd) Start() error { method Results (line 127) | func (c *Cmd) Results() []sh.Obj { return nil } type errCmdNotFound (line 24) | type errCmdNotFound struct method NotFound (line 37) | func (e *errCmdNotFound) NotFound() bool { function newCmdNotFound (line 29) | func newCmdNotFound(format string, arg ...interface{}) error { function NewCmd (line 41) | func NewCmd(name string) (*Cmd, error) { FILE: internal/sh/fncall.go type FnArg (line 14) | type FnArg struct type UserFn (line 19) | type UserFn struct method ArgNames (line 62) | func (fn *UserFn) ArgNames() []sh.FnArg { return fn.argNames } method AddArgName (line 64) | func (fn *UserFn) AddArgName(arg sh.FnArg) { method SetArgs (line 68) | func (fn *UserFn) SetArgs(args []sh.Obj) error { method Name (line 140) | func (fn *UserFn) Name() string { return fn.name } method SetRepr (line 142) | func (fn *UserFn) SetRepr(repr string) { method closeDescriptors (line 146) | func (fn *UserFn) closeDescriptors(closers []io.Closer) { method execute (line 152) | func (fn *UserFn) execute() ([]sh.Obj, error) { method Start (line 160) | func (fn *UserFn) Start() error { method Results (line 170) | func (fn *UserFn) Results() []sh.Obj { return fn.results } method Wait (line 172) | func (fn *UserFn) Wait() error { method SetEnviron (line 180) | func (fn *UserFn) SetEnviron(env []string) { method SetStderr (line 184) | func (fn *UserFn) SetStderr(w io.Writer) { method SetStdout (line 188) | func (fn *UserFn) SetStdout(w io.Writer) { method SetStdin (line 192) | func (fn *UserFn) SetStdin(r io.Reader) { method Stdin (line 196) | func (fn *UserFn) Stdin() io.Reader { return fn.stdin } method Stdout (line 197) | func (fn *UserFn) Stdout() io.Writer { return fn.stdout } method Stderr (line 198) | func (fn *UserFn) Stderr() io.Writer { return fn.stderr } method String (line 200) | func (fn *UserFn) String() string { method StdoutPipe (line 207) | func (fn *UserFn) StdoutPipe() (io.ReadCloser, error) { function NewUserFn (line 39) | func NewUserFn(name string, args []sh.FnArg, body *ast.Tree, parent *She... FILE: internal/sh/fndef.go type fnDef (line 13) | type fnDef struct method Name (line 59) | func (fnDef *fnDef) Name() string { return fnDef.name } method ArgNames (line 60) | func (fnDef *fnDef) ArgNames() []sh.FnArg { return fnDef.argNames } method Environ (line 61) | func (fnDef *fnDef) Environ() []string { return fnDef.environ } method SetEnviron (line 63) | func (fnDef *fnDef) SetEnviron(env []string) { method SetStdin (line 67) | func (fnDef *fnDef) SetStdin(r io.Reader) { method SetStderr (line 71) | func (fnDef *fnDef) SetStderr(w io.Writer) { method SetStdout (line 75) | func (fnDef *fnDef) SetStdout(w io.Writer) { method Stdin (line 79) | func (fnDef *fnDef) Stdin() io.Reader { return fnDef.stdin } method Stdout (line 80) | func (fnDef *fnDef) Stdout() io.Writer { return fnDef.stdout } method Stderr (line 81) | func (fnDef *fnDef) Stderr() io.Writer { return fnDef.stderr } type userFnDef (line 24) | type userFnDef struct method Build (line 94) | func (ufnDef *userFnDef) Build() sh.Fn { type builtinFnDef (line 28) | type builtinFnDef struct method Build (line 115) | func (bfnDef *builtinFnDef) Build() sh.Fn { function newFnDef (line 35) | func newFnDef(name string, parent *Shell, args []*ast.FnArgNode, body *a... function newUserFnDef (line 83) | func newUserFnDef(name string, parent *Shell, args []*ast.FnArgNode, bod... function newBuiltinFnDef (line 103) | func newBuiltinFnDef(name string, parent *Shell, constructor builtin.Con... FILE: internal/sh/functions_test.go function TestFunctionsClosures (line 5) | func TestFunctionsClosures(t *testing.T) { function TestFunctionsVariables (line 105) | func TestFunctionsVariables(t *testing.T) { function TestFunctionsStateless (line 128) | func TestFunctionsStateless(t *testing.T) { FILE: internal/sh/internal/fixture/fixture.go type NashDirs (line 12) | type NashDirs struct function SetupShell (line 24) | func SetupShell(t *testing.T) (*nash.Shell, func()) { function SetupNashDirs (line 37) | func SetupNashDirs(t *testing.T) NashDirs { FILE: internal/sh/ioutils_test.go function writeFile (line 9) | func writeFile(t *testing.T, filename string, data string) { function chdir (line 16) | func chdir(t *testing.T, dir string) { function getwd (line 25) | func getwd(t *testing.T) string { FILE: internal/sh/log.go type LogFn (line 9) | type LogFn function NewLog (line 12) | func NewLog(ns string, enable bool) LogFn { FILE: internal/sh/rfork.go method executeRfork (line 11) | func (sh *Shell) executeRfork(rfork *ast.RforkNode) error { FILE: internal/sh/rfork_linux.go function getProcAttrs (line 19) | func getProcAttrs(flags uintptr) *syscall.SysProcAttr { function dialRc (line 48) | func dialRc(sockpath string) (net.Conn, error) { method executeRfork (line 68) | func (sh *Shell) executeRfork(rfork *ast.RforkNode) error { function getflags (line 224) | func getflags(flags string) (uintptr, error) { FILE: internal/sh/rfork_linux_test.go function getletters (line 12) | func getletters() string { function getvalid (line 24) | func getvalid() string { function testTblFlagsOK (line 28) | func testTblFlagsOK(flagstr string, expected uintptr, t *testing.T) { function TestRforkFlags (line 42) | func TestRforkFlags(t *testing.T) { FILE: internal/sh/rfork_plan9.go method executeRfork (line 10) | func (sh *Shell) executeRfork(rfork *RforkNode) error { function getflags (line 15) | func getflags(flags string) (uintptr, error) { FILE: internal/sh/shell.go constant logNS (line 27) | logNS = "nashell.Shell" constant defPrompt (line 28) | defPrompt = "\033[31mλ>\033[0m " type Env (line 33) | type Env type Var (line 34) | type Var type Fns (line 35) | type Fns type StatusCode (line 37) | type StatusCode type Shell (line 40) | type Shell struct method NashPath (line 194) | func (shell *Shell) NashPath() string { method initEnv (line 199) | func (shell *Shell) initEnv(processEnv []string) error { method Reset (line 254) | func (shell *Shell) Reset() { method SetDebug (line 261) | func (shell *Shell) SetDebug(d bool) { method SetInteractive (line 267) | func (shell *Shell) SetInteractive(i bool) { method Interactive (line 275) | func (shell *Shell) Interactive() bool { method SetName (line 283) | func (shell *Shell) SetName(a string) { method Name (line 287) | func (shell *Shell) Name() string { return shell.name } method SetParent (line 289) | func (shell *Shell) SetParent(a *Shell) { method Environ (line 293) | func (shell *Shell) Environ() Env { method Getenv (line 301) | func (shell *Shell) Getenv(name string) (sh.Obj, bool) { method Setenv (line 310) | func (shell *Shell) Setenv(name string, value sh.Obj) { method SetEnviron (line 322) | func (shell *Shell) SetEnviron(processEnv []string) { method GetLocalvar (line 339) | func (shell *Shell) GetLocalvar(name string) (sh.Obj, bool) { method Getvar (line 346) | func (shell *Shell) Getvar(name string) (sh.Obj, bool) { method GetFn (line 359) | func (shell *Shell) GetFn(name string) (*sh.FnObj, error) { method Setbindfn (line 376) | func (shell *Shell) Setbindfn(name string, value sh.FnDef) { method Getbindfn (line 380) | func (shell *Shell) Getbindfn(cmdName string) (sh.FnDef, bool) { method Newvar (line 393) | func (shell *Shell) Newvar(name string, value sh.Obj) { method Setvar (line 400) | func (shell *Shell) Setvar(name string, value sh.Obj) bool { method IsFn (line 414) | func (shell *Shell) IsFn() bool { return shell.isFn } method SetIsFn (line 415) | func (shell *Shell) SetIsFn(b bool) { shell.isFn = b } method SetNashdPath (line 418) | func (shell *Shell) SetNashdPath(path string) { method SetStdin (line 423) | func (shell *Shell) SetStdin(in io.Reader) { method SetStdout (line 428) | func (shell *Shell) SetStdout(out io.Writer) { method SetStderr (line 433) | func (shell *Shell) SetStderr(err io.Writer) { method Stdout (line 437) | func (shell *Shell) Stdout() io.Writer { return shell.stdout } method Stderr (line 438) | func (shell *Shell) Stderr() io.Writer { return shell.stderr } method Stdin (line 439) | func (shell *Shell) Stdin() io.Reader { return shell.stdin } method SetTree (line 443) | func (shell *Shell) SetTree(t *ast.Tree) { method Tree (line 448) | func (shell *Shell) Tree() *ast.Tree { return shell.root } method SetRepr (line 451) | func (shell *Shell) SetRepr(a string) { method setupBuiltin (line 455) | func (shell *Shell) setupBuiltin() { method setupDefaultBindings (line 462) | func (shell *Shell) setupDefaultBindings() error { method setup (line 485) | func (shell *Shell) setup() error { method setupSignals (line 506) | func (shell *Shell) setupSignals() { method TriggerCTRLC (line 532) | func (shell *Shell) TriggerCTRLC() error { method setIntr (line 542) | func (shell *Shell) setIntr(b bool) { method getIntr (line 552) | func (shell *Shell) getIntr() bool { method Exec (line 561) | func (shell *Shell) Exec(path, content string) error { method ExecFile (line 575) | func (shell *Shell) ExecFile(path string) error { method newvar (line 593) | func (shell *Shell) newvar(name *ast.NameNode, value sh.Obj) error { method setvar (line 631) | func (shell *Shell) setvar(name *ast.NameNode, value sh.Obj) error { method setvars (line 675) | func (shell *Shell) setvars(names []*ast.NameNode, values []sh.Obj) er... method newvars (line 685) | func (shell *Shell) newvars(names []*ast.NameNode, values []sh.Obj) { method setcmdvars (line 691) | func (shell *Shell) setcmdvars(names []*ast.NameNode, stdout, stderr, ... method newcmdvars (line 719) | func (shell *Shell) newcmdvars(names []*ast.NameNode, stdout, stderr, ... method evalConcat (line 738) | func (shell *Shell) evalConcat(path ast.Expr) (string, error) { method executeNode (line 812) | func (shell *Shell) executeNode(node ast.Node) ([]sh.Obj, error) { method ExecuteTree (line 869) | func (shell *Shell) ExecuteTree(tr *ast.Tree) ([]sh.Obj, error) { method executeTree (line 874) | func (shell *Shell) executeTree(tr *ast.Tree, stopable bool) ([]sh.Obj... method executeReturn (line 917) | func (shell *Shell) executeReturn(n *ast.ReturnNode) ([]sh.Obj, error) { method getNashRootFromGOPATH (line 936) | func (shell *Shell) getNashRootFromGOPATH(preverr error) (string, erro... method executeImport (line 950) | func (shell *Shell) executeImport(node *ast.ImportNode) error { method executePipe (line 1028) | func (shell *Shell) executePipe(pipe *ast.PipeNode) (sh.Obj, error) { method openRedirectLocation (line 1214) | func (shell *Shell) openRedirectLocation(location ast.Expr) (io.WriteC... method setRedirects (line 1266) | func (shell *Shell) setRedirects(cmd sh.Runner, redirDecls []*ast.Redi... method buildRedirect (line 1281) | func (shell *Shell) buildRedirect(cmd sh.Runner, redirDecl *ast.Redire... method newBindfnRunner (line 1372) | func (shell *Shell) newBindfnRunner( method getCommand (line 1392) | func (shell *Shell) getCommand(c *ast.CommandNode) (sh.Runner, bool, e... method executeCommand (line 1443) | func (shell *Shell) executeCommand(c *ast.CommandNode) (sh.Obj, error) { method evalList (line 1507) | func (shell *Shell) evalList(argList *ast.ListExpr) (sh.Obj, error) { method evalArgList (line 1522) | func (shell *Shell) evalArgList(argList *ast.ListExpr) ([]sh.Obj, erro... method evalIndex (line 1541) | func (shell *Shell) evalIndex(index ast.Expr) (int, error) { method evalIndexedVar (line 1572) | func (shell *Shell) evalIndexedVar(indexVar *ast.IndexExpr) (sh.Obj, e... method evalArgIndexedVar (line 1596) | func (shell *Shell) evalArgIndexedVar(indexVar *ast.IndexExpr) ([]sh.O... method evalVariable (line 1628) | func (shell *Shell) evalVariable(a ast.Expr) (sh.Obj, error) { method evalArgVariable (line 1653) | func (shell *Shell) evalArgVariable(a ast.Expr) ([]sh.Obj, error) { method evalExprs (line 1688) | func (shell *Shell) evalExprs(exprs []ast.Expr) ([]sh.Obj, error) { method evalArgExprs (line 1703) | func (shell *Shell) evalArgExprs(exprs []ast.Expr) ([]sh.Obj, error) { method evalArgExpr (line 1718) | func (shell *Shell) evalArgExpr(expr ast.Expr) ([]sh.Obj, error) { method evalExpr (line 1776) | func (shell *Shell) evalExpr(expr ast.Expr) (sh.Obj, error) { method executeSetenvAssign (line 1830) | func (shell *Shell) executeSetenvAssign(assign *ast.AssignNode) error { method executeSetenvExec (line 1851) | func (shell *Shell) executeSetenvExec(assign *ast.ExecAssignNode) error { method executeSetenv (line 1871) | func (shell *Shell) executeSetenv(v *ast.SetenvNode) error { method concatElements (line 1901) | func (shell *Shell) concatElements(expr *ast.ConcatExpr) (string, erro... method execCmdOutput (line 1926) | func (shell *Shell) execCmdOutput(cmd ast.Node, method executeExecAssignCmd (line 1976) | func (shell *Shell) executeExecAssignCmd(v ast.Node) (stdout, stderr, ... method executeExecAssignFn (line 1991) | func (shell *Shell) executeExecAssignFn(assign *ast.ExecAssignNode) ([... method executeExecAssign (line 2018) | func (shell *Shell) executeExecAssign(v *ast.ExecAssignNode) (err erro... method initVar (line 2045) | func (shell *Shell) initVar(name *ast.NameNode, value ast.Expr) error { method executeVarAssign (line 2053) | func (shell *Shell) executeVarAssign(v *ast.VarAssignDeclNode) error { method executeVarExecAssign (line 2075) | func (shell *Shell) executeVarExecAssign(v *ast.VarExecAssignDeclNode)... method executeAssignment (line 2103) | func (shell *Shell) executeAssignment(v *ast.AssignNode) error { method evalIfArgument (line 2129) | func (shell *Shell) evalIfArgument(arg ast.Node) (sh.Obj, error) { method evalIfArguments (line 2146) | func (shell *Shell) evalIfArguments(n *ast.IfNode) (string, string, er... method executeIfEqual (line 2180) | func (shell *Shell) executeIfEqual(n *ast.IfNode) ([]sh.Obj, error) { method executeIfNotEqual (line 2196) | func (shell *Shell) executeIfNotEqual(n *ast.IfNode) ([]sh.Obj, error) { method executeFnInv (line 2212) | func (shell *Shell) executeFnInv(n *ast.FnInvNode) ([]sh.Obj, error) { method executeInfLoop (line 2271) | func (shell *Shell) executeInfLoop(tr *ast.Tree) ([]sh.Obj, error) { method executeFor (line 2322) | func (shell *Shell) executeFor(n *ast.ForNode) ([]sh.Obj, error) { method executeFnDecl (line 2428) | func (shell *Shell) executeFnDecl(n *ast.FnDeclNode) error { method executeBindFn (line 2439) | func (shell *Shell) executeBindFn(n *ast.BindFnNode) error { method executeIf (line 2455) | func (shell *Shell) executeIf(n *ast.IfNode) ([]sh.Obj, error) { type errIgnore (line 73) | type errIgnore struct method Ignore (line 100) | func (e *errIgnore) Ignore() bool { return true } type errInterrupted (line 77) | type errInterrupted struct method Interrupted (line 108) | func (e *errInterrupted) Interrupted() bool { return true } type errStopWalking (line 81) | type errStopWalking struct method StopWalking (line 116) | func (e *errStopWalking) StopWalking() bool { return true } constant ESuccess (line 87) | ESuccess StatusCode = 0 constant ENotFound (line 88) | ENotFound = 127 constant ENotStarted (line 89) | ENotStarted = 255 function newErrIgnore (line 92) | func newErrIgnore(format string, arg ...interface{}) error { function newErrInterrupted (line 102) | func newErrInterrupted(format string, arg ...interface{}) error { function newErrStopWalking (line 110) | func newErrStopWalking() *errStopWalking { function NewAbortShell (line 118) | func NewAbortShell(nashpath string, nashroot string) (*Shell, error) { function NewShell (line 125) | func NewShell(nashpath string, nashroot string) (*Shell, error) { function newShell (line 129) | func newShell(nashpath string, nashroot string, abort bool) (*Shell, err... function NewSubShell (line 176) | func NewSubShell(name string, parent *Shell) *Shell { function isValidNashRoot (line 945) | func isValidNashRoot(nashroot string) bool { function validateDirs (line 2467) | func validateDirs(nashpath string, nashroot string) error { function validateDir (line 2482) | func validateDir(dir string) error { FILE: internal/sh/shell_import_test.go function TestImportsLibFromNashPathLibDir (line 13) | func TestImportsLibFromNashPathLibDir(t *testing.T) { function TestImportsLibFromNashPathLibDirBeforeNashRootStdlib (line 30) | func TestImportsLibFromNashPathLibDirBeforeNashRootStdlib(t *testing.T) { function TestImportsLibFromNashRootStdlib (line 53) | func TestImportsLibFromNashRootStdlib(t *testing.T) { function TestImportsLibFromWorkingDirBeforeLibAndStdlib (line 70) | func TestImportsLibFromWorkingDirBeforeLibAndStdlib(t *testing.T) { function TestStdErrOnInvalidSearchPaths (line 106) | func TestStdErrOnInvalidSearchPaths(t *testing.T) { type testshell (line 197) | type testshell struct method ExecCheckingOutput (line 202) | func (s *testshell) ExecCheckingOutput(t *testing.T, code string, expe... function newTestShell (line 220) | func newTestShell(t *testing.T, nashpath string, nashroot string) *tests... FILE: internal/sh/shell_linux_test.go function init (line 19) | func init() { function TestExecuteRforkUserNS (line 68) | func TestExecuteRforkUserNS(t *testing.T) { function TestExecuteRforkEnvVars (line 94) | func TestExecuteRforkEnvVars(t *testing.T) { function TestExecuteRforkUserNSNested (line 117) | func TestExecuteRforkUserNSNested(t *testing.T) { FILE: internal/sh/shell_regression_test.go function TestExecuteIssue68 (line 12) | func TestExecuteIssue68(t *testing.T) { function TestExecuteErrorSuppression (line 45) | func TestExecuteErrorSuppression(t *testing.T) { FILE: internal/sh/shell_test.go type execTestCase (line 26) | type execTestCase struct type testFixture (line 35) | type testFixture struct function TestInitEnv (line 44) | func TestInitEnv(t *testing.T) { function TestExecuteFile (line 61) | func TestExecuteFile(t *testing.T) { function TestExecuteCommand (line 90) | func TestExecuteCommand(t *testing.T) { function TestExecuteAssignment (line 142) | func TestExecuteAssignment(t *testing.T) { function TestExecuteMultipleAssignment (line 208) | func TestExecuteMultipleAssignment(t *testing.T) { function TestExecuteCmdAssignment (line 273) | func TestExecuteCmdAssignment(t *testing.T) { function TestExecuteCmdMultipleAssignment (line 330) | func TestExecuteCmdMultipleAssignment(t *testing.T) { function TestExecuteRedirection (line 445) | func TestExecuteRedirection(t *testing.T) { function TestExecuteRedirectionMap (line 532) | func TestExecuteRedirectionMap(t *testing.T) { function TestExecuteSetenv (line 564) | func TestExecuteSetenv(t *testing.T) { function TestExecuteCd (line 606) | func TestExecuteCd(t *testing.T) { function TestExecuteImport (line 666) | func TestExecuteImport(t *testing.T) { function TestExecuteIfEqual (line 701) | func TestExecuteIfEqual(t *testing.T) { function TestExecuteIfElse (line 798) | func TestExecuteIfElse(t *testing.T) { function TestExecuteIfElseIf (line 841) | func TestExecuteIfElseIf(t *testing.T) { function TestExecuteFnDecl (line 885) | func TestExecuteFnDecl(t *testing.T) { function TestExecuteFnInv (line 899) | func TestExecuteFnInv(t *testing.T) { function TestFnComposition (line 1011) | func TestFnComposition(t *testing.T) { function TestExecuteFnInvOthers (line 1041) | func TestExecuteFnInvOthers(t *testing.T) { function TestNonInteractive (line 1073) | func TestNonInteractive(t *testing.T) { function TestExecuteBindFn (line 1126) | func TestExecuteBindFn(t *testing.T) { function TestExecutePipe (line 1188) | func TestExecutePipe(t *testing.T) { function TestExecuteRedirectionPipe (line 1238) | func TestExecuteRedirectionPipe(t *testing.T) { function testTCPRedirection (line 1257) | func testTCPRedirection(t *testing.T, port, command string) { function TestTCPRedirection (line 1302) | func TestTCPRedirection(t *testing.T) { function TestExecuteUnixRedirection (line 1307) | func TestExecuteUnixRedirection(t *testing.T) { function TestExecuteUDPRedirection (line 1385) | func TestExecuteUDPRedirection(t *testing.T) { function TestExecuteReturn (line 1447) | func TestExecuteReturn(t *testing.T) { function TestExecuteFnAsFirstClass (line 1532) | func TestExecuteFnAsFirstClass(t *testing.T) { function TestExecuteConcat (line 1565) | func TestExecuteConcat(t *testing.T) { function TestExecuteFor (line 1605) | func TestExecuteFor(t *testing.T) { function TestExecuteInfiniteLoop (line 1636) | func TestExecuteInfiniteLoop(t *testing.T) { function TestExecuteVariableIndexing (line 1691) | func TestExecuteVariableIndexing(t *testing.T) { function TestExecuteSubShellDoesNotOverwriteparentEnv (line 1778) | func TestExecuteSubShellDoesNotOverwriteparentEnv(t *testing.T) { function TestExecuteInterruptDoesNotCancelLoop (line 1811) | func TestExecuteInterruptDoesNotCancelLoop(t *testing.T) { function TestExecuteErrorSuppressionAll (line 1829) | func TestExecuteErrorSuppressionAll(t *testing.T) { function TestExecuteGracefullyError (line 1875) | func TestExecuteGracefullyError(t *testing.T) { function TestExecuteMultilineCmd (line 1907) | func TestExecuteMultilineCmd(t *testing.T) { function TestExecuteMultilineCmdAssign (line 1950) | func TestExecuteMultilineCmdAssign(t *testing.T) { function TestExecuteMultiReturnUnfinished (line 1996) | func TestExecuteMultiReturnUnfinished(t *testing.T) { function TestExecuteVariadicFn (line 2046) | func TestExecuteVariadicFn(t *testing.T) { function setup (line 2134) | func setup(t *testing.T) (testFixture, func()) { function testExecuteFile (line 2153) | func testExecuteFile(t *testing.T, path, expected string, before string) { function testShellExec (line 2175) | func testShellExec(t *testing.T, shell *sh.Shell, testcase execTestCase) { function testExec (line 2221) | func testExec(t *testing.T, testcase execTestCase) { function testInteractiveExec (line 2229) | func testInteractiveExec(t *testing.T, testcase execTestCase) { FILE: internal/sh/shell_var_test.go function TestVarAssign (line 10) | func TestVarAssign(t *testing.T) { function TestVarExecAssign (line 47) | func TestVarExecAssign(t *testing.T) { FILE: internal/sh/util.go function init (line 18) | func init() { function randRunes (line 22) | func randRunes(n int) string { function buildenv (line 30) | func buildenv(e Env) []string { function printVar (line 55) | func printVar(out io.Writer, name string, val sh.Obj) { function printEnv (line 65) | func printEnv(out io.Writer, name string) { function getErrStatus (line 69) | func getErrStatus(err error, def string) string { function nashdAutoDiscover (line 81) | func nashdAutoDiscover() string { FILE: internal/sh/util_test.go function TestBuildEnv (line 10) | func TestBuildEnv(t *testing.T) { FILE: internal/testing/fixture/io.go function Tmpdir (line 15) | func Tmpdir(t *testing.T) (string, func()) { function MkdirAll (line 38) | func MkdirAll(t *testing.T, nashlib string) { function CreateFiles (line 53) | func CreateFiles(t *testing.T, filepaths []string) map[string]string { function CreateFile (line 74) | func CreateFile(t *testing.T, f string) string { function WorkingDir (line 90) | func WorkingDir(t *testing.T) string { function ChangeDir (line 100) | func ChangeDir(t *testing.T, path string) { function Chmod (line 109) | func Chmod(t *testing.T, path string, mode os.FileMode) { FILE: nash.go type Shell (line 17) | type Shell struct method SetDebug (line 52) | func (nash *Shell) SetDebug(b bool) { method SetInteractive (line 57) | func (nash *Shell) SetInteractive(b bool) { method NashPath (line 61) | func (nash *Shell) NashPath() string { method Environ (line 66) | func (nash *Shell) Environ() shell.Env { method GetFn (line 71) | func (nash *Shell) GetFn(name string) (sh.FnDef, error) { method Prompt (line 80) | func (nash *Shell) Prompt() string { method SetNashdPath (line 91) | func (nash *Shell) SetNashdPath(path string) { method Exec (line 101) | func (nash *Shell) Exec(path, content string) error { method ExecOutput (line 114) | func (nash *Shell) ExecOutput(path, content string) ([]byte, error) { method ExecuteString (line 127) | func (nash *Shell) ExecuteString(path, content string) error { method ExecFile (line 133) | func (nash *Shell) ExecFile(path string, args ...string) error { method ExecuteFile (line 145) | func (nash *Shell) ExecuteFile(path string) error { method ExecuteTree (line 151) | func (nash *Shell) ExecuteTree(tr *ast.Tree) ([]sh.Obj, error) { method ExecTree (line 157) | func (nash *Shell) ExecTree(tree *ast.Tree) ([]sh.Obj, error) { method SetStdout (line 162) | func (nash *Shell) SetStdout(out io.Writer) { method SetStderr (line 167) | func (nash *Shell) SetStderr(err io.Writer) { method SetStdin (line 172) | func (nash *Shell) SetStdin(in io.Reader) { method Stdin (line 177) | func (nash *Shell) Stdin() io.Reader { return nash.interp.Stdin() } method Stdout (line 180) | func (nash *Shell) Stdout() io.Writer { return nash.interp.Stdout() } method Stderr (line 183) | func (nash *Shell) Stderr() io.Writer { return nash.interp.Stderr() } method Setvar (line 187) | func (nash *Shell) Setvar(name string, value sh.Obj) bool { method Newvar (line 192) | func (nash *Shell) Newvar(name string, value sh.Obj) { method Getvar (line 197) | func (nash *Shell) Getvar(name string) (sh.Obj, bool) { function newShell (line 22) | func newShell(nashpath string, nashroot string, abort bool) (*Shell, err... function New (line 41) | func New(nashpath string, nashroot string) (*Shell, error) { function NewAbort (line 47) | func NewAbort(nashpath string, nashroot string) (*Shell, error) { function args2Nash (line 201) | func args2Nash(args []string) string { FILE: nash_test.go function TestExecuteFile (line 16) | func TestExecuteFile(t *testing.T) { function TestExecuteString (line 40) | func TestExecuteString(t *testing.T) { function TestSetvar (line 78) | func TestSetvar(t *testing.T) { function newTestShell (line 107) | func newTestShell(t *testing.T) (*Shell, func()) { function tmpdir (line 124) | func tmpdir(t *testing.T) (string, func()) { FILE: parser/parse.go type Parser (line 17) | type Parser struct method Parse (line 65) | func (p *Parser) Parse() (tr *ast.Tree, err error) { method next (line 92) | func (p *Parser) next() scanner.Token { method backup (line 109) | func (p *Parser) backup(it scanner.Token) error { method ignore (line 120) | func (p *Parser) ignore() { method peek (line 129) | func (p *Parser) peek() scanner.Token { method parseBlock (line 135) | func (p *Parser) parseBlock(lineStart, columnStart int) (*ast.BlockNod... method parseStatement (line 178) | func (p *Parser) parseStatement() (ast.Node, error) { method parseIndexing (line 215) | func (p *Parser) parseIndexing() (ast.Expr, error) { method parseVariable (line 255) | func (p *Parser) parseVariable(tok *scanner.Token, allowVararg bool) (... method parsePipe (line 306) | func (p *Parser) parsePipe(first *ast.CommandNode) (ast.Node, error) { method parseCommand (line 357) | func (p *Parser) parseCommand(it scanner.Token) (ast.Node, error) { method parseRedirection (line 465) | func (p *Parser) parseRedirection(it scanner.Token) (*ast.RedirectNode... method parseImport (line 562) | func (p *Parser) parseImport(importToken scanner.Token) (ast.Node, err... method parseSetenv (line 586) | func (p *Parser) parseSetenv(it scanner.Token) (ast.Node, error) { method getArgument (line 629) | func (p *Parser) getArgument(tok *scanner.Token, cfg exprConfig) (ast.... method getConcatArg (line 690) | func (p *Parser) getConcatArg(firstArg ast.Expr) (ast.Expr, error) { method parseAssignment (line 721) | func (p *Parser) parseAssignment(ident scanner.Token) (ast.Node, error) { method parseList (line 794) | func (p *Parser) parseList(tok *scanner.Token) (ast.Node, error) { method parseAssignValues (line 854) | func (p *Parser) parseAssignValues(names []*ast.NameNode) (ast.Node, e... method parseAssignCmdOut (line 907) | func (p *Parser) parseAssignCmdOut(identifiers []*ast.NameNode) (ast.N... method parseRfork (line 949) | func (p *Parser) parseRfork(it scanner.Token) (ast.Node, error) { method parseIfExpr (line 988) | func (p *Parser) parseIfExpr() (ast.Node, error) { method parseIf (line 1003) | func (p *Parser) parseIf(it scanner.Token) (ast.Node, error) { method parseFnArgs (line 1073) | func (p *Parser) parseFnArgs() ([]*ast.FnArgNode, error) { method parseVar (line 1119) | func (p *Parser) parseVar(it scanner.Token) (ast.Node, error) { method parseFnDecl (line 1163) | func (p *Parser) parseFnDecl(it scanner.Token) (ast.Node, error) { method parseFnInv (line 1208) | func (p *Parser) parseFnInv(ident scanner.Token, allowSemicolon bool) ... method parseElse (line 1272) | func (p *Parser) parseElse() (*ast.BlockNode, bool, error) { method parseBindFn (line 1303) | func (p *Parser) parseBindFn(bindIt scanner.Token) (ast.Node, error) { method parseReturn (line 1325) | func (p *Parser) parseReturn(retTok scanner.Token) (ast.Node, error) { method parseFor (line 1416) | func (p *Parser) parseFor(it scanner.Token) (ast.Node, error) { method parseComment (line 1495) | func (p *Parser) parseComment(it scanner.Token) (ast.Node, error) { method parseError (line 1499) | func (p *Parser) parseError(it scanner.Token) (ast.Node, error) { type parserFn (line 29) | type parserFn type exprConfig (line 31) | type exprConfig struct function NewParser (line 40) | func NewParser(name, content string) *Parser { function newParserError (line 1503) | func newParserError(item scanner.Token, name, format string, args ...int... function isValidArgument (line 1514) | func isValidArgument(t scanner.Token) bool { function isFuncall (line 1528) | func isFuncall(tok, next token.Token) bool { function isAssignment (line 1533) | func isAssignment(tok token.Token) bool { function isExpr (line 1540) | func isExpr(tok token.Token) bool { FILE: parser/parse_fmt_test.go type fmtTestTable (line 5) | type fmtTestTable struct function testFmt (line 9) | func testFmt(input string, expected string, t *testing.T) { function testFmtTable (line 27) | func testFmtTable(testTable []fmtTestTable, t *testing.T) { function TestFmtVariables (line 33) | func TestFmtVariables(t *testing.T) { function TestFmtGroupVariables (line 92) | func TestFmtGroupVariables(t *testing.T) { function TestFmtFn (line 119) | func TestFmtFn(t *testing.T) { function TestFmtImports (line 148) | func TestFmtImports(t *testing.T) { function TestFmtFnComments (line 178) | func TestFmtFnComments(t *testing.T) { function TestFmtSamples (line 204) | func TestFmtSamples(t *testing.T) { function TestFmtPipes (line 303) | func TestFmtPipes(t *testing.T) { FILE: parser/parse_regression_test.go function init (line 10) | func init() { function TestParseIssue22 (line 14) | func TestParseIssue22(t *testing.T) { function TestParseIssue38 (line 75) | func TestParseIssue38(t *testing.T) { function TestParseIssue43 (line 92) | func TestParseIssue43(t *testing.T) { function TestParseIssue68 (line 157) | func TestParseIssue68(t *testing.T) { function TestParseIssue69 (line 185) | func TestParseIssue69(t *testing.T) { function TestParseImportIssue94 (line 211) | func TestParseImportIssue94(t *testing.T) { function TestParseIssue108 (line 221) | func TestParseIssue108(t *testing.T) { function TestParseIssue123 (line 249) | func TestParseIssue123(t *testing.T) { FILE: parser/parse_test.go function parserTest (line 11) | func parserTest(name, content string, expected *ast.Tree, t *testing.T, ... function parserTestFail (line 53) | func parserTestFail(t *testing.T, execStr string) { function TestParseSimple (line 69) | func TestParseSimple(t *testing.T) { function TestParseReverseGetSame (line 93) | func TestParseReverseGetSame(t *testing.T) { function TestParsePipe (line 109) | func TestParsePipe(t *testing.T) { function TestBasicSetEnvAssignment (line 129) | func TestBasicSetEnvAssignment(t *testing.T) { function TestBasicAssignment (line 187) | func TestBasicAssignment(t *testing.T) { function TestVarAssignment (line 230) | func TestVarAssignment(t *testing.T) { function TestParseMultipleAssign (line 255) | func TestParseMultipleAssign(t *testing.T) { function TestParseMultipleExecAssignment (line 285) | func TestParseMultipleExecAssignment(t *testing.T) { function TestParseInvalidIndexing (line 333) | func TestParseInvalidIndexing(t *testing.T) { function TestParseListAssignment (line 372) | func TestParseListAssignment(t *testing.T) { function TestParseListOfListsAssignment (line 403) | func TestParseListOfListsAssignment(t *testing.T) { function TestParseCmdAssignment (line 443) | func TestParseCmdAssignment(t *testing.T) { function TestParseInvalidEmpty (line 465) | func TestParseInvalidEmpty(t *testing.T) { function TestParsePathCommand (line 476) | func TestParsePathCommand(t *testing.T) { function TestParseWithShebang (line 488) | func TestParseWithShebang(t *testing.T) { function TestParseEmptyFile (line 505) | func TestParseEmptyFile(t *testing.T) { function TestParseSingleCommand (line 513) | func TestParseSingleCommand(t *testing.T) { function TestParseRedirectSimple (line 521) | func TestParseRedirectSimple(t *testing.T) { function TestParseRedirectWithLocation (line 547) | func TestParseRedirectWithLocation(t *testing.T) { function TestParseRedirectMultiples (line 562) | func TestParseRedirectMultiples(t *testing.T) { function TestParseCommandWithStringsEqualsNot (line 581) | func TestParseCommandWithStringsEqualsNot(t *testing.T) { function TestParseCommandSeparatedBySemicolon (line 598) | func TestParseCommandSeparatedBySemicolon(t *testing.T) { function TestParseStringNotFinished (line 613) | func TestParseStringNotFinished(t *testing.T) { function TestParseCd (line 628) | func TestParseCd(t *testing.T) { function TestParseConcatOfIndexedVar (line 743) | func TestParseConcatOfIndexedVar(t *testing.T) { function TestParseRfork (line 784) | func TestParseRfork(t *testing.T) { function TestParseRforkWithBlock (line 796) | func TestParseRforkWithBlock(t *testing.T) { function TestUnpairedRforkBlocks (line 826) | func TestUnpairedRforkBlocks(t *testing.T) { function TestParseImport (line 837) | func TestParseImport(t *testing.T) { function TestParseIf (line 857) | func TestParseIf(t *testing.T) { function TestParseFuncall (line 905) | func TestParseFuncall(t *testing.T) { function TestParseFuncallInvalid (line 994) | func TestParseFuncallInvalid(t *testing.T) { function TestParseIfFnInv (line 1013) | func TestParseIfFnInv(t *testing.T) { function TestParseIfLvariable (line 1064) | func TestParseIfLvariable(t *testing.T) { function TestParseIfRvariable (line 1089) | func TestParseIfRvariable(t *testing.T) { function TestParseIfElse (line 1114) | func TestParseIfElse(t *testing.T) { function TestParseIfElseIf (line 1150) | func TestParseIfElseIf(t *testing.T) { function TestParseFnBasic (line 1210) | func TestParseFnBasic(t *testing.T) { function TestParseInlineFnDecl (line 1297) | func TestParseInlineFnDecl(t *testing.T) { function TestParseBindFn (line 1337) | func TestParseBindFn(t *testing.T) { function TestParseRedirectionVariable (line 1348) | func TestParseRedirectionVariable(t *testing.T) { function TestParseReturn (line 1363) | func TestParseReturn(t *testing.T) { function TestParseIfInvalid (line 1446) | func TestParseIfInvalid(t *testing.T) { function TestParseFor (line 1456) | func TestParseFor(t *testing.T) { function TestParseVariableIndexing (line 1508) | func TestParseVariableIndexing(t *testing.T) { function TestParseMultilineCmdExec (line 1553) | func TestParseMultilineCmdExec(t *testing.T) { function TestParseMultilineCmdAssign (line 1594) | func TestParseMultilineCmdAssign(t *testing.T) { function TestMultiPipe (line 1616) | func TestMultiPipe(t *testing.T) { function TestFnVariadic (line 1658) | func TestFnVariadic(t *testing.T) { function TestParseValidDotdotdot (line 1688) | func TestParseValidDotdotdot(t *testing.T) { function TestParseInvalidDotdotdot (line 1705) | func TestParseInvalidDotdotdot(t *testing.T) { function TestFunctionPipes (line 1722) | func TestFunctionPipes(t *testing.T) { FILE: scanner/examples_test.go function Example (line 9) | func Example() { FILE: scanner/lex.go type Token (line 14) | type Token struct method Type (line 50) | func (i Token) Type() token.Token { return i.typ } method Value (line 51) | func (i Token) Value() string { return i.val } method String (line 53) | func (i Token) String() string { type stateFn (line 21) | type stateFn type Lexer (line 24) | type Lexer struct method run (line 69) | func (l *Lexer) run() { method emitVal (line 80) | func (l *Lexer) emitVal(t token.Token, val string, line, column int) { method emit (line 93) | func (l *Lexer) emit(t token.Token) { method peek (line 107) | func (l *Lexer) peek() rune { method next (line 114) | func (l *Lexer) next() rune { method ignore (line 138) | func (l *Lexer) ignore() { method backup (line 145) | func (l *Lexer) backup() { method acceptRun (line 158) | func (l *Lexer) acceptRun(valid string) { method errorf (line 167) | func (l *Lexer) errorf(format string, args ...interface{}) stateFn { constant eof (line 47) | eof = -1 function Lex (line 194) | func Lex(name, input string) *Lexer { function lexStart (line 206) | func lexStart(l *Lexer) stateFn { function absorbIdentifier (line 432) | func absorbIdentifier(l *Lexer) { function absorbArgument (line 446) | func absorbArgument(l *Lexer) { function scanIdentifier (line 460) | func scanIdentifier(l *Lexer) string { function lexQuote (line 466) | func lexQuote(l *Lexer) stateFn { function lexComment (line 529) | func lexComment(l *Lexer) stateFn { function lexSpace (line 550) | func lexSpace(l *Lexer) stateFn { function ignoreSpaces (line 555) | func ignoreSpaces(l *Lexer) { function isSpace (line 569) | func isSpace(r rune) bool { function isArgument (line 573) | func isArgument(r rune) bool { function isIdentifier (line 581) | func isIdentifier(r rune) bool { function isAlpha (line 586) | func isAlpha(r rune) bool { function isEndOfLine (line 591) | func isEndOfLine(r rune) bool { FILE: scanner/lex_regression_test.go function TestLexerIssue34 (line 9) | func TestLexerIssue34(t *testing.T) { function TestLexerIssue21 (line 24) | func TestLexerIssue21(t *testing.T) { function TestLexerIssue22 (line 36) | func TestLexerIssue22(t *testing.T) { function TestLexerIssue19 (line 76) | func TestLexerIssue19(t *testing.T) { function TestLexerIssue38 (line 99) | func TestLexerIssue38(t *testing.T) { function TestLexerIssue43 (line 116) | func TestLexerIssue43(t *testing.T) { function TestLexerIssue68 (line 155) | func TestLexerIssue68(t *testing.T) { function TestLexerIssue85 (line 171) | func TestLexerIssue85(t *testing.T) { function TestLexerIssue69 (line 184) | func TestLexerIssue69(t *testing.T) { function TestLexerIssue127 (line 201) | func TestLexerIssue127(t *testing.T) { FILE: scanner/lex_test.go function testTable (line 11) | func testTable(name, content string, expected []Token, t *testing.T) { function TestLexerCommandStringArgs (line 62) | func TestLexerCommandStringArgs(t *testing.T) { function TestLexerTokenToString (line 77) | func TestLexerTokenToString(t *testing.T) { function TestLexerShebangOnly (line 115) | func TestLexerShebangOnly(t *testing.T) { function TestLexerSimpleSetEnvAssignment (line 129) | func TestLexerSimpleSetEnvAssignment(t *testing.T) { function TestLexerSimpleAssignment (line 140) | func TestLexerSimpleAssignment(t *testing.T) { function TestLexerListAssignment (line 236) | func TestLexerListAssignment(t *testing.T) { function TestLexerListOfLists (line 304) | func TestLexerListOfLists(t *testing.T) { function TestLexerInvalidAssignments (line 350) | func TestLexerInvalidAssignments(t *testing.T) { function TestLexerSimpleCommand (line 363) | func TestLexerSimpleCommand(t *testing.T) { function TestLexerPipe (line 445) | func TestLexerPipe(t *testing.T) { function TestPipeFunctions (line 508) | func TestPipeFunctions(t *testing.T) { function TestLexerUnquoteArg (line 528) | func TestLexerUnquoteArg(t *testing.T) { function TestLexerDashedCommand (line 557) | func TestLexerDashedCommand(t *testing.T) { function TestLexerPathCommand (line 567) | func TestLexerPathCommand(t *testing.T) { function TestLexerInvalidBlock (line 578) | func TestLexerInvalidBlock(t *testing.T) { function TestLexerQuotedStringNotFinished (line 587) | func TestLexerQuotedStringNotFinished(t *testing.T) { function TestLexerVariousCommands (line 605) | func TestLexerVariousCommands(t *testing.T) { function TestLexerRfork (line 628) | func TestLexerRfork(t *testing.T) { function TestLexerSomethingIdontcareanymore (line 657) | func TestLexerSomethingIdontcareanymore(t *testing.T) { function TestLexerBuiltinCd (line 671) | func TestLexerBuiltinCd(t *testing.T) { function TestLexerRedirectSimple (line 741) | func TestLexerRedirectSimple(t *testing.T) { function TestLexerRedirectMap (line 784) | func TestLexerRedirectMap(t *testing.T) { function TestLexerRedirectMapToLocation (line 816) | func TestLexerRedirectMapToLocation(t *testing.T) { function TestLexerRedirectMultipleMaps (line 862) | func TestLexerRedirectMultipleMaps(t *testing.T) { function TestLexerImport (line 920) | func TestLexerImport(t *testing.T) { function TestLexerSimpleIf (line 931) | func TestLexerSimpleIf(t *testing.T) { function TestLexerIfWithConcat (line 972) | func TestLexerIfWithConcat(t *testing.T) { function TestLexerIfWithFuncInvocation (line 994) | func TestLexerIfWithFuncInvocation(t *testing.T) { function TestLexerIfElse (line 1017) | func TestLexerIfElse(t *testing.T) { function TestLexerIfElseIf (line 1038) | func TestLexerIfElseIf(t *testing.T) { function TestLexerFnBasic (line 1078) | func TestLexerFnBasic(t *testing.T) { function TestLexerFuncall (line 1189) | func TestLexerFuncall(t *testing.T) { function TestLexerAssignCmdOut (line 1270) | func TestLexerAssignCmdOut(t *testing.T) { function TestLexerMultipleAssignCmdOut (line 1282) | func TestLexerMultipleAssignCmdOut(t *testing.T) { function TestMultipleAssignments (line 1324) | func TestMultipleAssignments(t *testing.T) { function TestLexerBindFn (line 1340) | func TestLexerBindFn(t *testing.T) { function TestLexerRedirectionNetwork (line 1353) | func TestLexerRedirectionNetwork(t *testing.T) { function TestLexerDump (line 1369) | func TestLexerDump(t *testing.T) { function TestLexerReturn (line 1397) | func TestLexerReturn(t *testing.T) { function TestLexerFor (line 1526) | func TestLexerFor(t *testing.T) { function TestLexerFnAsFirstClass (line 1582) | func TestLexerFnAsFirstClass(t *testing.T) { function TestLexerListIndexing (line 1635) | func TestLexerListIndexing(t *testing.T) { function TestLexerMultilineCmdExecution (line 1712) | func TestLexerMultilineCmdExecution(t *testing.T) { function TestLexerMultilineCmdAssign (line 1754) | func TestLexerMultilineCmdAssign(t *testing.T) { function TestLexerCommandDelimiter (line 1809) | func TestLexerCommandDelimiter(t *testing.T) { function TestLexerLongAssignment (line 1824) | func TestLexerLongAssignment(t *testing.T) { function TestLexerVarArgs (line 1858) | func TestLexerVarArgs(t *testing.T) { function TestLexerVar (line 1909) | func TestLexerVar(t *testing.T) { FILE: sh/obj.go constant StringType (line 7) | StringType objType = iota + 1 constant FnType (line 8) | FnType constant ListType (line 9) | ListType type objType (line 13) | type objType method Type (line 67) | func (o objType) Type() objType { type Obj (line 15) | type Obj interface type ListObj (line 20) | type ListObj struct method Len (line 116) | func (o *ListObj) Len() int { method Set (line 120) | func (o *ListObj) Set(index int, value Obj) error { method Get (line 132) | func (o *ListObj) Get(index int) (Obj, error) { method List (line 143) | func (o *ListObj) List() []Obj { return o.list } method String (line 145) | func (o *ListObj) String() string { type FnObj (line 25) | type FnObj struct method Fn (line 105) | func (o *FnObj) Fn() FnDef { return o.fn } method String (line 107) | func (o *FnObj) String() string { return fmt.Sprintf("", o.fn.N... type StrObj (line 30) | type StrObj struct method Str (line 78) | func (o *StrObj) Str() string { return string(o.runes) } method String (line 80) | func (o *StrObj) String() string { return o.Str() } method Get (line 82) | func (o *StrObj) Get(index int) (Obj, error) { method Len (line 94) | func (o *StrObj) Len() int { type Collection (line 35) | type Collection interface type WriteableCollection (line 40) | type WriteableCollection interface function NewCollection (line 45) | func NewCollection(o Obj) (Collection, error) { function NewWriteableCollection (line 56) | func NewWriteableCollection(o Obj) (WriteableCollection, error) { function NewStrObj (line 71) | func NewStrObj(val string) *StrObj { function NewFnObj (line 98) | func NewFnObj(val FnDef) *FnObj { function NewListObj (line 109) | func NewListObj(val []Obj) *ListObj { FILE: sh/objtype_string.go constant _objType_name (line 7) | _objType_name = "StringTypeFnTypeListType" method String (line 11) | func (i objType) String() string { FILE: sh/shell.go type Runner (line 6) | type Runner interface type FnArg (line 24) | type FnArg struct type Fn (line 29) | type Fn interface type FnDef (line 38) | type FnDef interface function NewFnArg (line 45) | func NewFnArg(name string, isVariadic bool) FnArg { FILE: spec_test.go function TestSpecificationIsSane (line 13) | func TestSpecificationIsSane(t *testing.T) { FILE: stdbin/mkdir/main.go function mkdirs (line 8) | func mkdirs(dirnames []string) error { function main (line 18) | func main() { FILE: stdbin/mkdir/mkdir_test.go type testcase (line 11) | type testcase struct function testMkdir (line 15) | func testMkdir(t *testing.T, tc testcase) { function TestMkdir (line 41) | func TestMkdir(t *testing.T) { FILE: stdbin/pwd/main.go function main (line 8) | func main() { FILE: stdbin/strings/main.go function main (line 9) | func main() { FILE: stdbin/strings/strings.go function Do (line 10) | func Do(input io.Reader, minTextSize uint) *bufio.Scanner { function searchstrings (line 21) | func searchstrings(input io.Reader, minTextSize uint, output *io.PipeWri... type byteType (line 92) | type byteType type wordSearcher (line 94) | type wordSearcher struct method next (line 107) | func (w *wordSearcher) next(b byte) ([]byte, bool) { method nextRune (line 114) | func (w *wordSearcher) nextRune(b byte) ([]byte, bool) { method resetRuneSearch (line 152) | func (w *wordSearcher) resetRuneSearch() { method nextASCII (line 157) | func (w *wordSearcher) nextASCII(b byte) ([]byte, bool) { method startRuneSearch (line 175) | func (w *wordSearcher) startRuneSearch(b byte) { method writeOnBuffer (line 180) | func (w *wordSearcher) writeOnBuffer(b ...byte) { method writeOnPossibleRune (line 184) | func (w *wordSearcher) writeOnPossibleRune(b byte) { method bufferLenInRunes (line 188) | func (w *wordSearcher) bufferLenInRunes() uint { method flushBuffer (line 192) | func (w *wordSearcher) flushBuffer() ([]byte, bool) { constant binaryType (line 102) | binaryType byteType = iota constant asciiType (line 103) | asciiType constant runeStartType (line 104) | runeStartType function bytetype (line 205) | func bytetype(b byte) byteType { FILE: stdbin/strings/strings_test.go function TestStrings (line 14) | func TestStrings(t *testing.T) { function TestStringsReadErrorOnFirstByte (line 374) | func TestStringsReadErrorOnFirstByte(t *testing.T) { function TestStringsReadErrorOnSecondByte (line 382) | func TestStringsReadErrorOnSecondByte(t *testing.T) { function TestStringsReadErrorAfterValidUTF8StartingByte (line 396) | func TestStringsReadErrorAfterValidUTF8StartingByte(t *testing.T) { function TestStringsReadCanReturnEOFWithData (line 410) | func TestStringsReadCanReturnEOFWithData(t *testing.T) { constant runestart (line 431) | runestart byte = 0xC2 type FakeReader (line 433) | type FakeReader struct method Read (line 437) | func (f *FakeReader) Read(d []byte) (int, error) { function newFakeReader (line 444) | func newFakeReader(read func([]byte) (int, error)) *FakeReader { function assertScannerFails (line 448) | func assertScannerFails(t *testing.T, scanner *bufio.Scanner, expectedIt... function newBinary (line 463) | func newBinary(size uint) []byte { FILE: stdbin/write/fd.go function specialFile (line 10) | func specialFile(path string) (io.WriteCloser, bool) { FILE: stdbin/write/fd_windows.go function specialFile (line 8) | func specialFile(path string) (io.WriteCloser, bool) { FILE: stdbin/write/main.go function fatal (line 12) | func fatal(msg string) { function main (line 17) | func main() { FILE: stdbin/write/write.go function toabs (line 9) | func toabs(path string) (string, error) { function outfd (line 20) | func outfd(fname string) (io.WriteCloser, error) { function write (line 39) | func write(fname string, in io.Reader) (err error) { FILE: tests/cfg.go function init (line 24) | func init() { FILE: tests/internal/assert/equal.go function EqualStrings (line 8) | func EqualStrings(t *testing.T, want string, got string) { function ContainsString (line 15) | func ContainsString(t *testing.T, str string, sub string) { FILE: tests/internal/assert/error.go function NoError (line 5) | func NoError(t *testing.T, err error, operation string) { FILE: tests/internal/sh/shell.go function Exec (line 16) | func Exec( FILE: tests/internal/tester/tester.go type TestCase (line 12) | type TestCase struct function Run (line 20) | func Run(t *testing.T, nashcmd string, cases ...TestCase) { FILE: tests/listindex_test.go function TestListIndexing (line 9) | func TestListIndexing(t *testing.T) { FILE: tests/stringindex_test.go function TestStringIndexing (line 9) | func TestStringIndexing(t *testing.T) { function TestStringIndexingASCII (line 43) | func TestStringIndexingASCII(t *testing.T) { function TestStringIndexingNonASCII (line 93) | func TestStringIndexingNonASCII(t *testing.T) { FILE: token/token.go type Token (line 6) | type Token method String (line 152) | func (tok Token) String() string { type FileInfo (line 8) | type FileInfo struct method Line (line 149) | func (info FileInfo) Line() int { return info.line } method Column (line 150) | func (info FileInfo) Column() int { return info.column } constant Illegal (line 14) | Illegal Token = iota + 1 constant EOF (line 15) | EOF constant Comment (line 16) | Comment constant literal_beg (line 18) | literal_beg constant Ident (line 20) | Ident constant String (line 21) | String constant Number (line 22) | Number constant Arg (line 23) | Arg constant literal_end (line 25) | literal_end constant operator_beg (line 27) | operator_beg constant Assign (line 29) | Assign constant AssignCmd (line 30) | AssignCmd constant Equal (line 31) | Equal constant NotEqual (line 32) | NotEqual constant Plus (line 33) | Plus constant Minus (line 34) | Minus constant Gt (line 35) | Gt constant Lt (line 36) | Lt constant Colon (line 38) | Colon constant Semicolon (line 39) | Semicolon constant operator_end (line 41) | operator_end constant LBrace (line 43) | LBrace constant RBrace (line 44) | RBrace constant LParen (line 45) | LParen constant RParen (line 46) | RParen constant LBrack (line 47) | LBrack constant RBrack (line 48) | RBrack constant Pipe (line 49) | Pipe constant Comma (line 51) | Comma constant Dotdotdot (line 52) | Dotdotdot constant Variable (line 54) | Variable constant keyword_beg (line 56) | keyword_beg constant Import (line 58) | Import constant SetEnv (line 59) | SetEnv constant ShowEnv (line 60) | ShowEnv constant BindFn (line 61) | BindFn constant Dump (line 62) | Dump constant Return (line 63) | Return constant If (line 64) | If constant Else (line 65) | Else constant For (line 66) | For constant Rfork (line 67) | Rfork constant Fn (line 68) | Fn constant Var (line 69) | Var constant keyword_end (line 71) | keyword_end function init (line 125) | func init() { function Lookup (line 132) | func Lookup(ident string) Token { function IsKeyword (line 140) | func IsKeyword(t Token) bool { function NewFileInfo (line 148) | func NewFileInfo(l, c int) FileInfo { return FileInfo{l, c} } FILE: vendor/golang.org/x/exp/ebnf/ebnf.go type errorList (line 36) | type errorList method Err (line 38) | func (list errorList) Err() error { method Error (line 45) | func (list errorList) Error() string { function newError (line 55) | func newError(pos scanner.Position, msg string) error { type Expression (line 64) | type Expression interface type Alternative (line 70) | type Alternative method Pos (line 128) | func (x Alternative) Pos() scanner.Position { return x[0].Pos() } type Sequence (line 73) | type Sequence method Pos (line 129) | func (x Sequence) Pos() scanner.Position { return x[0].Pos() } type Name (line 76) | type Name struct method Pos (line 130) | func (x *Name) Pos() scanner.Position { return x.StringPos } type Token (line 82) | type Token struct method Pos (line 131) | func (x *Token) Pos() scanner.Position { return x.StringPos } type Range (line 88) | type Range struct method Pos (line 132) | func (x *Range) Pos() scanner.Position { return x.Begin.Pos() } type Group (line 93) | type Group struct method Pos (line 133) | func (x *Group) Pos() scanner.Position { return x.Lparen } type Option (line 99) | type Option struct method Pos (line 134) | func (x *Option) Pos() scanner.Position { return x.Lbrack } type Repetition (line 105) | type Repetition struct method Pos (line 135) | func (x *Repetition) Pos() scanner.Position { return x.Lbrace } type Production (line 111) | type Production struct method Pos (line 136) | func (x *Production) Pos() scanner.Position { return x.Name.Pos() } type Bad (line 117) | type Bad struct method Pos (line 137) | func (x *Bad) Pos() scanner.Position { return x.TokPos } type Grammar (line 125) | type Grammar function isLexical (line 142) | func isLexical(name string) bool { type verifier (line 147) | type verifier struct method error (line 154) | func (v *verifier) error(pos scanner.Position, msg string) { method push (line 158) | func (v *verifier) push(prod *Production) { method verifyChar (line 166) | func (v *verifier) verifyChar(x *Token) rune { method verifyExpr (line 176) | func (v *verifier) verifyExpr(expr Expression, lexical bool) { method verify (line 222) | func (v *verifier) verify(grammar Grammar, start string) { function Verify (line 265) | func Verify(grammar Grammar, start string) error { FILE: vendor/golang.org/x/exp/ebnf/parser.go type parser (line 13) | type parser struct method next (line 21) | func (p *parser) next() { method error (line 27) | func (p *parser) error(pos scanner.Position, msg string) { method errorExpected (line 31) | func (p *parser) errorExpected(pos scanner.Position, msg string) { method expect (line 44) | func (p *parser) expect(tok rune) scanner.Position { method parseIdentifier (line 53) | func (p *parser) parseIdentifier() *Name { method parseToken (line 60) | func (p *parser) parseToken() *Token { method parseTerm (line 76) | func (p *parser) parseTerm() (x Expression) { method parseSequence (line 111) | func (p *parser) parseSequence() Expression { method parseExpression (line 130) | func (p *parser) parseExpression() Expression { method parseProduction (line 150) | func (p *parser) parseProduction() *Production { method parse (line 161) | func (p *parser) parse(filename string, src io.Reader) Grammar { function Parse (line 186) | func Parse(filename string, src io.Reader) (Grammar, error) {