Fixed loads of oversights

- Forgot I used IList instead of List
- Introduced the Tracer class. This allows writing text to the terminal in Debug mode, regardless of if a Debugger is attached.
Added version to 0.2.101 (0.1 outputting the original .txt file)
- Default config settings (if no file is found) is now set in GetConfig()

Honestly, this turned out to be bigger than I anticipated, but I'm enjoying myself.
This commit is contained in:
Tony Bark 2025-03-16 16:01:18 -04:00
parent 2dd63ccba0
commit 0c18cb0c34
6 changed files with 130 additions and 27 deletions

View file

@ -10,15 +10,16 @@ public class Config
/// <summary>
/// Gets or sets the name of the schedule file.
/// </summary>
public string File { get; set; } = "schedule.json";
public string? File { get; set; }
/// <summary>
/// Gets or sets the directory path where the schedule file is stored.
/// </summary>
public string Path { get; set; } = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
public string? Path { get; set; }
/// <summary>
/// Gets or sets the list of available topics from the configuration file.
/// </summary>
public IList<string> Topics { get; set; } = new[] { "Games", "Politics", "Research", "Technology" };
public List<string> Topics { get; set; } = new List<string>();
}