From 1d2f15793c13a88d5a56b62cfbdb5d709ce267a3 Mon Sep 17 00:00:00 2001 From: Tony Bark Date: Sun, 16 Mar 2025 18:48:14 -0400 Subject: [PATCH 1/2] Minor tweaks --- Program.cs | 2 +- Tracer.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Program.cs b/Program.cs index 7c58bda..2b8e318 100644 --- a/Program.cs +++ b/Program.cs @@ -262,7 +262,7 @@ void ExportSchedule(List storeTimes) jsonList.Add(new Schedule() { Topic = chosenTopic.Trim(), - Date = date, + Date = date.Trim(), Times = times, }); diff --git a/Tracer.cs b/Tracer.cs index c9dc29c..13a57aa 100644 --- a/Tracer.cs +++ b/Tracer.cs @@ -13,7 +13,7 @@ internal static class Tracer /// The text to write to the console. [Conditional("DEBUG")] internal static void WriteLine(string content) => - Console.WriteLine(content); + Console.WriteLine(content); /// /// Writes text to the console without a newline, but only when in DEBUG mode. @@ -21,7 +21,7 @@ internal static class Tracer /// The text to write to the console. [Conditional("DEBUG")] internal static void Write(string content) => - Console.Write(content); + Console.Write(content); /// /// Writes multiple lines of text to the console, but only when in DEBUG mode. @@ -59,7 +59,7 @@ internal static class Tracer #if DEBUG return Directory.GetCurrentDirectory(); #else - return AppDomain.CurrentDomain.BaseDirectory; + return AppDomain.CurrentDomain.BaseDirectory; #endif } } From 3ceff705a3e6ae2be795ececc695b4dd1ada0ebd Mon Sep 17 00:00:00 2001 From: Tony Bark Date: Sun, 16 Mar 2025 21:56:49 -0400 Subject: [PATCH 2/2] Renamed to StaggerPost --- Config.cs | 2 +- GlobalUsings.cs | 2 +- README.md | 2 +- PublishTimes.csproj => StaggerPost.csproj | 0 Tracer.cs | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename PublishTimes.csproj => StaggerPost.csproj (100%) diff --git a/Config.cs b/Config.cs index 14a4dc2..9641754 100644 --- a/Config.cs +++ b/Config.cs @@ -1,5 +1,5 @@ // I hereby waive this project under the public domain - see UNLICENSE for details. -namespace PublishTimes; +namespace StaggerPost; /// /// Represents the configuration settings for exporting a schedule, diff --git a/GlobalUsings.cs b/GlobalUsings.cs index 5e35567..6a39b5d 100644 --- a/GlobalUsings.cs +++ b/GlobalUsings.cs @@ -1,6 +1,6 @@ global using System.Diagnostics; global using Tomlyn; global using Tomlyn.Model; -global using PublishTimes; +global using StaggerPost; global using System.Text.Json; global using System.Text.Json.Serialization; \ No newline at end of file diff --git a/README.md b/README.md index f3cb362..6d51334 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Publish Times +# StaggerPost This is a very simple console application that generates a list of times to publish news articles within a randomized 2-3 hour delay within a 30-minute window to avoid conflicts. This keeps thing flowing at an organic and slow pace. diff --git a/PublishTimes.csproj b/StaggerPost.csproj similarity index 100% rename from PublishTimes.csproj rename to StaggerPost.csproj diff --git a/Tracer.cs b/Tracer.cs index 13a57aa..ca6190e 100644 --- a/Tracer.cs +++ b/Tracer.cs @@ -1,5 +1,5 @@ // I hereby waive this project under the public domain - see UNLICENSE for details. -namespace PublishTimes; +namespace StaggerPost; /// /// Provides debug-only console output methods.