From f5bd1a09dc5a5b0d77020e83d53069889ab6540c Mon Sep 17 00:00:00 2001 From: Yuuki Wesp Date: Thu, 27 Jun 2019 18:17:20 +0300 Subject: [PATCH] upd --- Rune/Host.cs | 16 ++++++++++------ Rune/Rune.csproj | 16 ++++++++++++++++ 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/Rune/Host.cs b/Rune/Host.cs index f27a6c0..29f4968 100644 --- a/Rune/Host.cs +++ b/Rune/Host.cs @@ -16,13 +16,13 @@ internal class Host { - - private static readonly Dictionary> s_builtIns = - new Dictionary> + private static readonly Dictionary> s_builtIns = new Dictionary> { - ["new"] = NewCommand.Run, - ["help"] = HelpCommand.Run, - ["run"] = RunCommand.Run + ["new"] = NewCommand.Run, + ["help"] = HelpCommand.Run, + ["run"] = RunCommand.Run, + ["build"] = BuildCommand.Run, + ["vm"] = VMCommand.Run }; public static int Main(string[] args) { @@ -117,7 +117,11 @@ internal static int ProcessArgs(string[] args) if (s_builtIns.TryGetValue(command, out var builtIn)) exitCode = builtIn(appArgs.ToArray()); else + { + Console.WriteLine("Could not execute because the specified command or file was not found.".Color(Color.Red)); exitCode = -1; + } + watch.Stop(); Console.WriteLine($"{":sparkles:".Emoji()} Done in {watch.Elapsed.TotalSeconds:00.000}s."); diff --git a/Rune/Rune.csproj b/Rune/Rune.csproj index 1d21356..947a5e7 100644 --- a/Rune/Rune.csproj +++ b/Rune/Rune.csproj @@ -7,6 +7,22 @@ Rune.CLI resource\icon.ico + 0.21.98 + 0.21.100.0 + 0.21.100.0 + + + + False + True + True + True + False + False + SettingsVersion + None + IncrementOnDemand.IncrementOnDemand.Increment.None + IncrementOnDemand.IncrementOnDemand.Increment.None