Compare commits

...

2 commits

Author SHA1 Message Date
3ceff705a3 Renamed to StaggerPost 2025-03-16 21:56:49 -04:00
1d2f15793c Minor tweaks 2025-03-16 18:48:14 -04:00
6 changed files with 8 additions and 8 deletions

View file

@ -1,5 +1,5 @@
// I hereby waive this project under the public domain - see UNLICENSE for details.
namespace PublishTimes;
namespace StaggerPost;
/// <summary>
/// Represents the configuration settings for exporting a schedule,

View file

@ -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;

View file

@ -262,7 +262,7 @@ void ExportSchedule(List<String> storeTimes)
jsonList.Add(new Schedule()
{
Topic = chosenTopic.Trim(),
Date = date,
Date = date.Trim(),
Times = times,
});

View file

@ -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.

View file

@ -1,5 +1,5 @@
// I hereby waive this project under the public domain - see UNLICENSE for details.
namespace PublishTimes;
namespace StaggerPost;
/// <summary>
/// Provides debug-only console output methods.
@ -13,7 +13,7 @@ internal static class Tracer
/// <param name="content">The text to write to the console.</param>
[Conditional("DEBUG")]
internal static void WriteLine(string content) =>
Console.WriteLine(content);
Console.WriteLine(content);
/// <summary>
/// Writes text to the console without a newline, but only when in DEBUG mode.
@ -21,7 +21,7 @@ internal static class Tracer
/// <param name="content">The text to write to the console.</param>
[Conditional("DEBUG")]
internal static void Write(string content) =>
Console.Write(content);
Console.Write(content);
/// <summary>
/// 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
}
}