Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ListConds (0.22 sec)

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

    	return err
    }
    
    // ListConds prints to w a list of conditions, one per line,
    // annotating each with a description and whether the condition
    // is true in the state s (if s is non-nil).
    //
    // Each of the tag arguments should be a condition string of
    // the form "name" or "name:suffix". If no tags are passed as
    // arguments, ListConds lists all conditions registered in
    // the engine 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

    	}
    
    	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)
    	}
    	args.Conditions = conds.String()
    
    	doc := new(strings.Builder)
    	cmd := testenv.Command(t, testGo, "doc", "cmd/go/internal/script")
    	cmd.Env = env
    	cmd.Stdout = doc
    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

    				}
    			}
    
    			out := new(strings.Builder)
    
    			if len(conds) > 0 || (len(args) == 0 && len(s.engine.Conds) > 0) {
    				if conds == nil {
    					out.WriteString("conditions:\n\n")
    				}
    				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...)
    			}
    
    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