Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ListCmds (0.24 sec)

  1. src/cmd/go/internal/script/engine.go

    	}
    
    	return nil
    }
    
    // ListCmds prints to w a list of the named commands,
    // annotating each with its arguments and a short usage summary.
    // If verbose is true, ListCmds prints full details for each command.
    //
    // Each of the name arguments should be a command name.
    // If no names are passed as arguments, ListCmds lists all the
    // commands registered in e.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  2. src/cmd/go/scriptreadme_test.go

    func checkScriptReadme(t *testing.T, engine *script.Engine, env []string) {
    	var args struct {
    		Language   string
    		Commands   string
    		Conditions string
    	}
    
    	cmds := new(strings.Builder)
    	if err := engine.ListCmds(cmds, true); err != nil {
    		t.Fatal(err)
    	}
    	args.Commands = cmds.String()
    
    	conds := new(strings.Builder)
    	if err := engine.ListConds(conds, nil); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. src/cmd/go/internal/script/cmds.go

    				}
    				s.engine.ListConds(out, s, conds...)
    			}
    
    			if len(cmds) > 0 || len(args) == 0 {
    				if len(args) == 0 {
    					out.WriteString("\ncommands:\n\n")
    				}
    				s.engine.ListCmds(out, verbose, cmds...)
    			}
    
    			wait := func(*State) (stdout, stderr string, err error) {
    				return out.String(), "", nil
    			}
    			return wait, nil
    		})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
Back to top