Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DefaultCmds (0.19 sec)

  1. src/cmd/go/scriptcmds_test.go

    	"cmd/go/internal/work"
    	"errors"
    	"fmt"
    	"os"
    	"os/exec"
    	"strings"
    	"sync"
    	"time"
    )
    
    func scriptCommands(interrupt os.Signal, waitDelay time.Duration) map[string]script.Cmd {
    	cmds := scripttest.DefaultCmds()
    
    	// Customize the "exec" interrupt signal and grace period.
    	var cancel func(cmd *exec.Cmd) error
    	if interrupt != nil {
    		cancel = func(cmd *exec.Cmd) error {
    			return cmd.Process.Signal(interrupt)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 18:33:17 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. src/cmd/go/internal/script/cmds.go

    	"os"
    	"os/exec"
    	"path/filepath"
    	"regexp"
    	"runtime"
    	"strconv"
    	"strings"
    	"sync"
    	"time"
    )
    
    // DefaultCmds returns a set of broadly useful script commands.
    //
    // Run the 'help' command within a script engine to view a list of the available
    // commands.
    func DefaultCmds() map[string]Cmd {
    	return map[string]Cmd{
    		"cat":     Cat(),
    		"cd":      Cd(),
    		"chmod":   Chmod(),
    		"cmp":     Cmp(),
    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