Implemented "Add" command and finished Db stuff.

This commit is contained in:
2025-01-31 21:42:43 +03:30
parent 07feac2f65
commit f0339e5c0e
8 changed files with 161 additions and 48 deletions
+42 -2
View File
@@ -1,3 +1,43 @@
using TBDel.Interface;
using TBDel.Services;
using TBDel.Commands;
namespace TBDel
{
internal class Program
{
// TODO: Add a command to show the Db path
static async Task Main(string[] args)
{
// Show the help message if no arguments are provided
if (args.Length == 0)
{
HelpCommand.Show();
return;
}
string command = args[0].ToLower();
switch (command)
{
case "add":
await AddCommand.AddEntry(args);
break;
case "delete":
break;
case "deleteall":
break;
case "list":
break;
case "help":
HelpCommand.Show();
break;
default:
HelpCommand.Show(true);
break;
}
}
}
}