Compare commits
24 Commits
7749d8df4e
...
5ad57465d8
Author | SHA1 | Date |
---|---|---|
Tim Van Baak | 5ad57465d8 | |
Tim Van Baak | 885628900b | |
Tim Van Baak | e1772ce60b | |
Tim Van Baak | abaa7f7a92 | |
Tim Van Baak | 442015b942 | |
Tim Van Baak | 228ad53cca | |
Tim Van Baak | f1563b8f5f | |
Tim Van Baak | 345d54f960 | |
Tim Van Baak | 58f877425a | |
Tim Van Baak | 2f4c8b2a38 | |
Tim Van Baak | ef4e130dbb | |
Tim Van Baak | 9606307e12 | |
Tim Van Baak | 87685ec744 | |
Tim Van Baak | 752a898123 | |
Tim Van Baak | 400263ea0b | |
Tim Van Baak | 5e5483367d | |
Tim Van Baak | 81c9aa4859 | |
Tim Van Baak | fca8b77a21 | |
Tim Van Baak | b756959b0a | |
Tim Van Baak | b887e01334 | |
Tim Van Baak | 421e84b559 | |
Tim Van Baak | 780ae8b948 | |
Tim Van Baak | 40254b0fca | |
Tim Van Baak | bd8e0da6b6 |
|
@ -1,15 +0,0 @@
|
||||||
using CommandLine;
|
|
||||||
|
|
||||||
namespace MultiversalDiplomacy.CommandLine;
|
|
||||||
|
|
||||||
[Verb("adjudicate", HelpText = "Adjudicate a Multiversal Diplomacy game state.")]
|
|
||||||
public class AdjudicateOptions
|
|
||||||
{
|
|
||||||
[Value(0, HelpText = "Input file describing the game state to adjudicate, or - to read from stdin.")]
|
|
||||||
public string? InputFile { get; set; }
|
|
||||||
|
|
||||||
public static void Execute(AdjudicateOptions args)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
using CommandLine;
|
|
||||||
|
|
||||||
namespace MultiversalDiplomacy.CommandLine;
|
|
||||||
|
|
||||||
[Verb("image", HelpText = "Generate an image of a game state.")]
|
|
||||||
public class ImageOptions
|
|
||||||
{
|
|
||||||
[Value(0, HelpText = "Input file describing the game state to visualize, or - to read from stdin.")]
|
|
||||||
public string? InputFile { get; set; }
|
|
||||||
|
|
||||||
public static void Execute(ImageOptions args)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,18 +0,0 @@
|
||||||
using CommandLine;
|
|
||||||
|
|
||||||
namespace MultiversalDiplomacy.CommandLine;
|
|
||||||
|
|
||||||
[Verb("repl", HelpText = "Begin an interactive 5dplomacy session.")]
|
|
||||||
public class ReplOptions
|
|
||||||
{
|
|
||||||
[Option('i', "input", HelpText = "Begin the repl session by executing the commands in this file.")]
|
|
||||||
public string? InputFile { get; set; }
|
|
||||||
|
|
||||||
[Option('o', "output", HelpText = "Echo the repl session to this file. Specify a directory to autogenerate a filename.")]
|
|
||||||
public string? OutputFile { get; set; }
|
|
||||||
|
|
||||||
public static void Execute(ReplOptions args)
|
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -7,10 +7,6 @@
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="CommandLineParser" Version="2.9.1" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
||||||
<_Parameter1>MultiversalDiplomacyTests</_Parameter1>
|
<_Parameter1>MultiversalDiplomacyTests</_Parameter1>
|
||||||
|
|
|
@ -1,23 +1,12 @@
|
||||||
using CommandLine;
|
using System;
|
||||||
|
|
||||||
using MultiversalDiplomacy.CommandLine;
|
namespace MultiversalDiplomacy
|
||||||
|
|
||||||
namespace MultiversalDiplomacy;
|
|
||||||
|
|
||||||
internal class Program
|
|
||||||
{
|
{
|
||||||
|
internal class Program
|
||||||
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
var parser = Parser.Default;
|
Console.WriteLine("stab");
|
||||||
var parseResult = parser.ParseArguments(
|
}
|
||||||
args,
|
|
||||||
typeof(AdjudicateOptions),
|
|
||||||
typeof(ImageOptions),
|
|
||||||
typeof(ReplOptions));
|
|
||||||
|
|
||||||
parseResult
|
|
||||||
.WithParsed<AdjudicateOptions>(AdjudicateOptions.Execute)
|
|
||||||
.WithParsed<ImageOptions>(ImageOptions.Execute)
|
|
||||||
.WithParsed<ReplOptions>(ReplOptions.Execute);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue