Provides helper methods related to operating system functionality across multiple platforms.
More...
|
static string | ExpandVariables (string value, IDictionary< string, string > variables) |
| Expands/substitutes any Unix-style environment variables in the string. More...
|
|
static string | ExpandVariables (string value, StringDictionary variables) |
| Expands/substitutes any Unix-style environment variables in the string. More...
|
|
|
static bool | IsInteractive [get] |
| Indicates whether the current process is running in an interactive session (rather than, e.g. as a CI job or a service). More...
|
|
Provides helper methods related to operating system functionality across multiple platforms.
◆ ExpandVariables() [1/2]
static string NanoByte.Common.Native.OSUtils.ExpandVariables |
( |
string |
value, |
|
|
IDictionary< string, string > |
variables |
|
) |
| |
|
inlinestatic |
Expands/substitutes any Unix-style environment variables in the string.
- Parameters
-
value | The string containing variables to be expanded. |
variables | The list of variables available for expansion. |
Supports default values for unset variables (${VAR-default}
) and for unset or empty variables (${VAR:-default}
).
◆ ExpandVariables() [2/2]
static string NanoByte.Common.Native.OSUtils.ExpandVariables |
( |
string |
value, |
|
|
StringDictionary |
variables |
|
) |
| |
|
inlinestatic |
Expands/substitutes any Unix-style environment variables in the string.
- Parameters
-
value | The string containing variables to be expanded. |
variables | The list of variables available for expansion. |
Supports default values for unset variables (${VAR-default}
) and for unset or empty variables (${VAR:-default}
).
◆ IsInteractive
bool NanoByte.Common.Native.OSUtils.IsInteractive |
|
staticget |
Indicates whether the current process is running in an interactive session (rather than, e.g. as a CI job or a service).
The documentation for this class was generated from the following file: