Browse Source

Added basic setup commands to console-commands.

master
Craig Oates 6 years ago
parent
commit
2bb1219883
  1. 25
      WetPancakeCLI/ConsoleCommands.cs

25
WetPancakeCLI/ConsoleCommands.cs

@ -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…
Cancel
Save