Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
0xF6 committed Jun 27, 2019
1 parent d966a8c commit f5bd1a0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Rune/Host.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

internal class Host
{

private static readonly Dictionary<string, Func<string[], int>> s_builtIns =
new Dictionary<string, Func<string[], int>>
private static readonly Dictionary<string, Func<string[], int>> s_builtIns = new Dictionary<string, Func<string[], int>>
{
["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)
{
Expand Down Expand Up @@ -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.");
Expand Down
16 changes: 16 additions & 0 deletions Rune/Rune.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@
<RootNamespace>Rune.CLI</RootNamespace>
<ApplicationIcon>resource\icon.ico</ApplicationIcon>
<StartupObject></StartupObject>
<Version>0.21.98</Version>
<AssemblyVersion>0.21.100.0</AssemblyVersion>
<FileVersion>0.21.100.0</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<ShouldCreateLogs>False</ShouldCreateLogs>
<AdvancedSettingsExpanded>True</AdvancedSettingsExpanded>
<UpdateAssemblyVersion>True</UpdateAssemblyVersion>
<UpdateAssemblyFileVersion>True</UpdateAssemblyFileVersion>
<UpdateAssemblyInfoVersion>False</UpdateAssemblyInfoVersion>
<UpdatePackageVersion>False</UpdatePackageVersion>
<AssemblyInfoVersionType>SettingsVersion</AssemblyInfoVersionType>
<InheritWinAppVersionFrom>None</InheritWinAppVersionFrom>
<AssemblyVersionSettings>IncrementOnDemand.IncrementOnDemand.Increment.None</AssemblyVersionSettings>
<AssemblyFileVersionSettings>IncrementOnDemand.IncrementOnDemand.Increment.None</AssemblyFileVersionSettings>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit f5bd1a0

Please sign in to comment.