Documentation ¶
Overview ¶
Package cliutil provides some util functions for CLI
Index ¶
- func CurrentShell(onlyName bool) (path string)
- func ExecCmd(binName string, args []string, workDir ...string) (string, error)
- func ExecCommand(binName string, args []string, workDir ...string) (string, error)
- func HasShellEnv(shell string) bool
- func QuickExec(cmdLine string, workDir ...string) (string, error)
- func ShellExec(cmdLine string, shells ...string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentShell ¶
CurrentShell get current used shell env file. eg "/bin/zsh" "/bin/bash"
func ExecCommand ¶
ExecCommand alias of the ExecCmd()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.