Craig Oates
6 years ago
1 changed files with 20 additions and 5 deletions
@ -1,13 +1,28 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
using Console.Waterworks; |
||||
using Console.Waterworks.Attributes; |
||||
using System; |
||||
using static System.Environment; |
||||
|
||||
namespace WetPancakeCLI |
||||
{ |
||||
public static class ConsoleCommands |
||||
{ |
||||
[ListCommand] |
||||
[Description("Prints a test messge to the console.")] |
||||
[Parameters("none")] |
||||
[Usage("> Test")] |
||||
public static string Test() => "SUCCESS: Console.Waterworks is wired into Wet Pancake CLI."; |
||||
|
||||
[ListCommand] |
||||
[Description("Lists out the commands this program offers.")] |
||||
[Parameters("none")] |
||||
[Usage("> Help")] |
||||
public static string Help() => new CW_Liaison().RequestHelpDocumentation("WetPancakeCLI"); |
||||
|
||||
[ListCommand] |
||||
[Description("Exits out of the program.")] |
||||
[Parameters("none")] |
||||
[Usage("> Exit")] |
||||
public static void Exit() => Environment.Exit(ExitCode); |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue