Esempio n. 1
0
        public static void Load(string[] lines, LoadOptions options)
        {
            Vars envFile = Parser.Parse(
                lines,
                options.TrimWhitespace,
                options.IsEmbeddedHashComment,
                options.UnescapeQuotedValues
                );

            LoadVars.SetEnvironmentVariables(envFile, options.ClobberExistingVars);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        public static void Load(string path, bool trimWhitespace = true, bool isEmbeddedHashComment = true)
        {
            Vars envFile = Parser.Parse(File.ReadAllLines(path), trimWhitespace, isEmbeddedHashComment);

            LoadVars.SetEnvironmentVariables(envFile);
        }
Esempio n. 4
0
        public static void Load(string path)
        {
            Vars envFile = Parser.Parse(File.ReadAllLines(path));

            LoadVars.SetEnvironmentVariables(envFile);
        }