-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
40 lines (30 loc) · 1.29 KB
/
Copy pathProgram.cs
File metadata and controls
40 lines (30 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using PWMan;
using PWMan.CLI;
using PWMan.Commands;
using PWMan.Core;
static class Program
{
public static void Main(string[] args)
{
List<CommandRegistration> commands = new List<CommandRegistration>()
{
// basic commands
new CommandRegistration(new CreateVaultCommand(), RequiresVault: false),
new CommandRegistration(new LoadVaultCommand(), RequiresVault: false),
new CommandRegistration(new UnloadVaultCommand()),
new CommandRegistration(new LockVaultCommand()),
new CommandRegistration(new UnlockVaultCommand()),
new CommandRegistration(new AddEntryCommand()),
new CommandRegistration(new GetEntryCommand()),
new CommandRegistration(new SearchEntriesCommand()),
new CommandRegistration(new ListEntriesCommand()),
new CommandRegistration(new DeleteEntryCommand()),
new CommandRegistration(new SaveVaultCommand()),
// custom commands
new CommandRegistration(new LoadVaultCommand(), DefaultArgs: ["load", "json", "vault.dat"], Name: "lv", Help: "Shortcut to load JSON format 'vault.dat'", RequiresVault: false)
};
Log.SetMode(0);
REPL repl = new REPL(commands);
repl.Start();
}
}