Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,603 for command1 (0.16 sec)

  1. cmd/main.go

    	commandsTree := trie.NewTrie()
    
    	// registerCommand registers a cli command.
    	registerCommand := func(command cli.Command) {
    		commands = append(commands, command)
    		commandsTree.Insert(command.Name)
    	}
    
    	findClosestCommands := func(command string) []string {
    		var closestCommands []string
    		closestCommands = append(closestCommands, commandsTree.PrefixMatch(command)...)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. cmd/genman/gen_kube_man.go

    	if len(command.Example) > 0 {
    		fmt.Fprintf(out, "# EXAMPLE\n")
    		fmt.Fprintf(out, "```\n%s\n```\n", command.Example)
    	}
    
    	if len(command.Commands()) > 0 || len(parent) > 0 {
    		fmt.Fprintf(out, "# SEE ALSO\n")
    		if len(parent) > 0 {
    			fmt.Fprintf(out, "**%s(1)**, ", dparent)
    		}
    		for _, c := range command.Commands() {
    			fmt.Fprintf(out, "**%s-%s(1)**, ", dname, c.Name())
    			genMarkdown(c, name, docsDir)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 05 12:03:09 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. src/cmd/go/internal/help/help.go

    		base.Exit()
    	}
    
    	if len(cmd.Commands) > 0 {
    		PrintUsage(os.Stdout, cmd)
    	} else {
    		tmpl(os.Stdout, helpTemplate, cmd)
    	}
    	// not exit 2: succeeded at 'go help cmd'.
    	return
    }
    
    var usageTemplate = `{{.Long | trim}}
    
    Usage:
    
    	{{.UsageLine}} <command> [arguments]
    
    The commands are:
    {{range .Commands}}{{if or (.Runnable) .Commands}}
    	{{.Name | printf "%-11s"}} {{.Short}}{{end}}{{end}}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. src/cmd/go/internal/generate/generate.go

    }
    
    // setShorthand installs a new shorthand as defined by a -command directive.
    func (g *Generator) setShorthand(words []string) {
    	// Create command shorthand.
    	if len(words) == 1 {
    		g.errorf("no command specified for -command")
    	}
    	command := words[1]
    	if g.commands[command] != nil {
    		g.errorf("command %q multiply defined", command)
    	}
    	g.commands[command] = slices.Clip(words[2:])
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 29 19:39:24 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/README

    Commands are executed one at a time, and errors are checked for each command;
    if any command fails unexpectedly, no subsequent commands in the script are
    executed. The command prefix ! indicates that the command on the rest of the
    line (typically go or a matching predicate) must fail instead of succeeding.
    The command prefix ? indicates that the command may or may not succeed, but the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/mirror/SetMirrorsSampleModifier.java

                return sample;
            }
            List<Command> commands = sample.getCommands();
            List<Command> modifiedCommands = new ArrayList<Command>();
            for (Command command : commands) {
                if ("gradle".equals(command.getExecutable())) {
                    List<String> args = new ArrayList<String>(command.getArgs());
                    args.add("--init-script");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/internal/driver/interactive.go

    			ui.Print(`No samples were found with the default sample value type.`)
    			ui.Print(`Try "sample_index" command to analyze different sample values.`, "\n")
    		}
    	}
    	ui.Print(`Entering interactive mode (type "help" for commands, "o" for options)`)
    }
    
    // shortcuts represents composite commands that expand into a sequence
    // of other commands.
    type shortcuts map[string][]string
    
    func (a shortcuts) expand(input string) []string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 10.6K bytes
    - Viewed (0)
  8. src/cmd/go/chdir_test.go

    	// Test that every command either has a -C flag registered
    	// or has CustomFlags set. In the latter case, the command
    	// must be explicitly tested in TestScript/chdir.
    	script, err := os.ReadFile("testdata/script/chdir.txt")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	var walk func(string, *base.Command)
    	walk = func(name string, cmd *base.Command) {
    		if len(cmd.Commands) > 0 {
    			for _, sub := range cmd.Commands {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 03 12:16:35 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  9. src/cmd/go/internal/version/version.go

    )
    
    func runVersion(ctx context.Context, cmd *base.Command, args []string) {
    	if len(args) == 0 {
    		// If any of this command's flags were passed explicitly, error
    		// out, because they only make sense with arguments.
    		//
    		// Don't error if the flags came from GOFLAGS, since that can be
    		// a reasonable use case. For example, imagine GOFLAGS=-v to
    		// turn "verbose mode" on for all Go commands, which should not
    		// break "go version".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 19:27:00 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  10. src/cmd/go/internal/toolchain/select.go

    			// If we are racing with another go command and do bin/go first,
    			// then the check of bin/go above might succeed, the other go command
    			// would skip its own mode-setting, and then the go command might
    			// try to run a tool before we get to setting the bits on pkg/tool.
    			// Setting pkg/tool before bin/go avoids that ordering problem.
    			// The only other tool the go command invokes is gofmt,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top