diff options
Diffstat (limited to 'GitStaticPageBuilder/Program.cs')
-rw-r--r-- | GitStaticPageBuilder/Program.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/GitStaticPageBuilder/Program.cs b/GitStaticPageBuilder/Program.cs new file mode 100644 index 0000000..e70e3c0 --- /dev/null +++ b/GitStaticPageBuilder/Program.cs @@ -0,0 +1,14 @@ +// See https://aka.ms/new-console-template for more information + +using GitStaticPageBuilder.Pages; +using LibGit; +using LibGit.Extensions; + +Console.WriteLine("Hello, World!"); + +var repo = new GitRepo("/home/root@Rory/git/spacebar/server/.git"); +Console.WriteLine(repo.ToJson(ignoreNull: false, indent: true, unsafeContent: true)); +if(!Directory.Exists("output")) + Directory.CreateDirectory("output"); +File.WriteAllText("output/repo.json", repo.ToJson(ignoreNull: false, indent: true, unsafeContent: true)); +File.WriteAllText("output/repo.html", RepoPage.GetRepoPage(repo)); \ No newline at end of file |