processBySystem static method
Processes input string using system environment variables.
This is a static utility method that creates a Variables instance from system environment variables and processes the input string.
Parameters:
input- The input string to process (can be null)globalResults- Optional CLI argument results
Returns the processed string with variables substituted
Implementation
static Future<String> processBySystem(
String? input,
ArgResults? globalResults,
) async {
return Variables.fromSystem(globalResults).process(input);
}