import "github.com/jenkins-zh/jenkins-cli/util"
cmd.go collect.go env.go logger.go password.go url.go
Exec is the wrapper of syscall.Exec
ExecCommand is a warp of exec.Command
FakeExecCommandSuccess is a function that initialises a new exec.Cmd, one which will simply call TestShellProcessSuccess rather than the command it is provided. It will also pass through the command and its arguments as an argument to TestShellProcessSuccess
FakeLookPath is a fake function of exec.LookPath
FakeSystemCallExecSuccess is a fake function of syscall.Exec
GeneratePassword generates a password with the specific length
GetEnvOrDefault returns a env or default value
InitLogger returns a logger
func LookPath(file string, context LookPathContext) (string, error)
LookPath is the wrapper of exec.LookPath
MaxAndMin return the max and min number
func Open(url string, browser string, cmdContext ExecContext) error
Open a URL in a browser
PrintCollectTrend print the trend of data
URLJoin is a util function to join host URL and API URL
URLJoinAsString is a util function to join host URL and API URL
ExecContext is the context of system command caller
LookPathContext is the context of look path
SystemCallExec is the context of syscall.Exec
Package util imports 12 packages (graph) and is imported by 5 packages. Updated 2021-01-27. Refresh now. Tools for package owners.