constants

package
v0.0.0-...-d707f67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package constants manages the configuration of the session shell.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL