internal static void ExportTagDictionary() { var tagDictionary = TagDictionaryBuilder.BuildLazy(Arguments.FixedPath); var tagDictionaryJson = JsonConvert.SerializeObject(tagDictionary, Formatting.Indented); if (!string.IsNullOrWhiteSpace(Arguments.DictionarySavePath)) { File.WriteAllText(Arguments.DictionarySavePath, tagDictionaryJson); } if (!string.IsNullOrWhiteSpace(Arguments.DictionaryPostUrl)) { using (var cli = new WebClient { Headers = { [HttpRequestHeader.ContentType] = "application/json" } }) { cli.UploadString(Arguments.DictionaryPostUrl, tagDictionaryJson); } } }
internal static string Render(this string s) { var tagDictionary = TagDictionaryBuilder.BuildLazy(Arguments.FixedPath); return(s.RenderTemplate(tagDictionary)); }
internal static void DefaultUpdate() { var tagDictionary = TagDictionaryBuilder.BuildLazy(Arguments.FixedPath); ProcessSubstitution.Update(Arguments.SubstitutionPath, tagDictionary, Arguments.OutputFailureContext); }
internal static void UpdateFiles() { var tagDictionary = TagDictionaryBuilder.BuildLazy(Arguments.FixedPath); ProcessFiles.UpdateFiles(Arguments.DeployFrom, Arguments.TemplateFilters, tagDictionary); }