From 929e87868085fbe6d237fc70b577d4a9fe714c45 Mon Sep 17 00:00:00 2001 From: jvyden Date: Wed, 24 Nov 2021 01:06:47 -0500 Subject: [PATCH] Add command arguments to placeholder in admin panel, add play icon to execute command button --- ProjectLighthouse/CommandLine/ICommand.cs | 2 ++ ProjectLighthouse/CommandLine/MakeUserAdminCommand.cs | 1 + ProjectLighthouse/CommandLine/ResetPasswordCommand.cs | 1 + ProjectLighthouse/Pages/AdminPanelPage.cshtml | 7 +++++-- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ProjectLighthouse/CommandLine/ICommand.cs b/ProjectLighthouse/CommandLine/ICommand.cs index ea20f319..263dd02f 100644 --- a/ProjectLighthouse/CommandLine/ICommand.cs +++ b/ProjectLighthouse/CommandLine/ICommand.cs @@ -12,6 +12,8 @@ namespace LBPUnion.ProjectLighthouse.CommandLine public string FirstAlias => this.Aliases()[0]; + public string Arguments(); + public int RequiredArgs(); } } \ No newline at end of file diff --git a/ProjectLighthouse/CommandLine/MakeUserAdminCommand.cs b/ProjectLighthouse/CommandLine/MakeUserAdminCommand.cs index 42a43297..d96aaf99 100644 --- a/ProjectLighthouse/CommandLine/MakeUserAdminCommand.cs +++ b/ProjectLighthouse/CommandLine/MakeUserAdminCommand.cs @@ -16,6 +16,7 @@ namespace LBPUnion.ProjectLighthouse.CommandLine { "makeAdmin", }; + public string Arguments() => ""; public int RequiredArgs() => 1; public async Task Run(string[] args) diff --git a/ProjectLighthouse/CommandLine/ResetPasswordCommand.cs b/ProjectLighthouse/CommandLine/ResetPasswordCommand.cs index bfbb46c0..a867c8d2 100644 --- a/ProjectLighthouse/CommandLine/ResetPasswordCommand.cs +++ b/ProjectLighthouse/CommandLine/ResetPasswordCommand.cs @@ -16,6 +16,7 @@ namespace LBPUnion.ProjectLighthouse.CommandLine { "setPassword", "resetPassword", "passwd", "password", }; + public string Arguments() => " "; public int RequiredArgs() => 2; public async Task Run(string[] args) diff --git a/ProjectLighthouse/Pages/AdminPanelPage.cshtml b/ProjectLighthouse/Pages/AdminPanelPage.cshtml index 41d80740..ea725c83 100644 --- a/ProjectLighthouse/Pages/AdminPanelPage.cshtml +++ b/ProjectLighthouse/Pages/AdminPanelPage.cshtml @@ -16,10 +16,13 @@

@command.Name()

- +


- +