Documentation ¶
Overview ¶
Package constants manages the configuration of the session shell.
Index ¶
- Constants
- func GetRunAsElevated(shellProps mgsContracts.ShellProperties) bool
- func GetSeparateOutputStream(shellProps mgsContracts.ShellProperties) (bool, error)
- func GetShellCommand(shellProps mgsContracts.ShellProperties) string
- func GetStdErrSeparatorPrefix(shellProps mgsContracts.ShellProperties) string
- func GetStdOutSeparatorPrefix(shellProps mgsContracts.ShellProperties) string
Constants ¶
View Source
const ( UserDirectory = "/home/" HomeEnvVariable = "HOME=" + UserDirectory RootHomeEnvVariable = "HOME=/root" )
Variables ¶
This section is empty.
Functions ¶
func GetRunAsElevated ¶
func GetRunAsElevated(shellProps mgsContracts.ShellProperties) bool
func GetSeparateOutputStream ¶
func GetSeparateOutputStream(shellProps mgsContracts.ShellProperties) (bool, error)
GetSeparateOutputStream return whether need separate output stderr and stderr for non-interactive session.
func GetShellCommand ¶
func GetShellCommand(shellProps mgsContracts.ShellProperties) string
func GetStdErrSeparatorPrefix ¶
func GetStdErrSeparatorPrefix(shellProps mgsContracts.ShellProperties) string
GetStdErrSeparatorPrefix return the prefix used for StdErr partition
func GetStdOutSeparatorPrefix ¶
func GetStdOutSeparatorPrefix(shellProps mgsContracts.ShellProperties) string
GetStdOutSeparatorPrefix return the prefix used for StdOut partition
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.