This repository has been archived on 2025-09-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Password-Manager-Legacy/CLI/Program.cs

46 lines
654 B
C#
Raw Normal View History

2023-04-16 19:54:11 +02:00
using Common;
namespace CLI;
2023-04-15 19:04:05 +02:00
class Program
{
static string BINARY_NAME = "pass";
static int Main(string[] args)
2023-04-15 19:04:05 +02:00
{
//ConfigFileManager.ExceptionOccured += (e) => ErrorOccured(e);
//ConfigFileManager.Init();
if (args.Length == 0)
{
ListPasswords();
return 0;
}
else
{
switch (args[0])
{
case "help":
HelpMessage();
break;
default:
HelpMessage();
break;
}
}
return 0;
}
static void ListPasswords()
{
}
2023-04-16 20:46:14 +02:00
static void ErrorOccured(Exception e)
{
Console.WriteLine($"The following error occured while trying to load your profile:\n{e}\nMore details:\n{e.ToString()}");
}
2023-04-15 19:04:05 +02:00
}
}