From 4d51d4f00e39f8aacd2db1b6c8224b7fae29d62d Mon Sep 17 00:00:00 2001 From: Eveldee Date: Mon, 7 Jun 2021 18:37:59 +0200 Subject: [PATCH] Udpate MasterCommands --- .../Cli/Commands/MasterCommands.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Akari.Prototype.Server/Cli/Commands/MasterCommands.cs b/Akari.Prototype.Server/Cli/Commands/MasterCommands.cs index 6c02d1a..9ce544a 100644 --- a/Akari.Prototype.Server/Cli/Commands/MasterCommands.cs +++ b/Akari.Prototype.Server/Cli/Commands/MasterCommands.cs @@ -61,18 +61,18 @@ namespace Akari.Prototype.Server.Cli.Commands throw new CommandException("Created master password but can't login"); } - ansiConsole.Markup("[green]Successfully created [yellow]master password[/][/]"); + ansiConsole.MarkupLine("[green]Successfully created [yellow]master password[/][/]"); return default; } } - [Command("m l", Description = "Login and check master password")] - public class LoginMasterPasswordCommand : ICommand + [Command("m t", Description = "Test master password")] + public class TestMasterPasswordCommand : ICommand { private readonly IMasterKeyService _masterKeyService; - public LoginMasterPasswordCommand(IMasterKeyService masterKeyService) + public TestMasterPasswordCommand(IMasterKeyService masterKeyService) { _masterKeyService = masterKeyService; } @@ -90,11 +90,11 @@ namespace Akari.Prototype.Server.Cli.Commands if (!CliUtils.Login(_masterKeyService, ansiConsole)) { - ansiConsole.Markup("[red]Invalid [yellow]master password[/][/]"); + ansiConsole.MarkupLine("[red]Invalid [yellow]master password[/][/]"); } else { - ansiConsole.Markup("[green]Successfully logged in[/]"); + ansiConsole.MarkupLine("[green]Successfully logged in[/]"); } return default; @@ -114,11 +114,11 @@ namespace Akari.Prototype.Server.Cli.Commands if (!_masterKeyService.IsPasswordSet) { - ansiConsole.Markup("[yellow]Master password[/] is not set"); + ansiConsole.MarkupLine("[yellow]Master password[/] is not set"); } else { - ansiConsole.Markup("[yellow]Master password[/] is set"); + ansiConsole.MarkupLine("[yellow]Master password[/] is set"); } return default;