public static void Load(string[] lines, LoadOptions options) { Vars envFile = Parser.Parse( lines, options.TrimWhitespace, options.IsEmbeddedHashComment, options.UnescapeQuotedValues ); LoadVars.SetEnvironmentVariables(envFile, options.ClobberExistingVars); }
public static void Load( string[] lines, bool trimWhitespace = true, bool isEmbeddedHashComment = true, bool unescapeQuotedValues = true, bool clobberExistingVars = true ) { Vars envFile = Parser.Parse( lines, trimWhitespace, isEmbeddedHashComment, unescapeQuotedValues ); LoadVars.SetEnvironmentVariables(envFile, clobberExistingVars); }
public static void Load(string path, bool trimWhitespace = true, bool isEmbeddedHashComment = true) { Vars envFile = Parser.Parse(File.ReadAllLines(path), trimWhitespace, isEmbeddedHashComment); LoadVars.SetEnvironmentVariables(envFile); }
public static void Load(string path) { Vars envFile = Parser.Parse(File.ReadAllLines(path)); LoadVars.SetEnvironmentVariables(envFile); }