-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
269 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,38 @@ | ||
//using R5.RunInfoBuilder; | ||
//using System; | ||
//using System.Collections.Generic; | ||
//using System.Text; | ||
using R5.RunInfoBuilder; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
//namespace R5.FFDB.CLI.Commands | ||
//{ | ||
// // ffdb setup --force|f --config|c=path\to\config.json | ||
// public static class InitialSetup | ||
// { | ||
// private const string _commandKey = "setup"; | ||
namespace R5.FFDB.CLI.Commands | ||
{ | ||
// ffdb setup --skip-stats|s --config|c=path\to\config.json | ||
public static class InitialSetup | ||
{ | ||
private const string _commandKey = "setup"; | ||
|
||
// public class RunInfo : RunInfoBase | ||
// { | ||
// public override string CommandKey => _commandKey; | ||
// public bool ForceReinitialize { get; set; } | ||
// } | ||
public class RunInfo : RunInfoBase | ||
{ | ||
public override string CommandKey => _commandKey; | ||
public bool SkipAddingStats { get; set; } | ||
} | ||
|
||
// internal static Command<RunInfo> Command = new Command<RunInfo> | ||
// { | ||
// Key = _commandKey, | ||
// Options = | ||
// { | ||
// new Option<RunInfo, bool> | ||
// { | ||
// Key = "force | f", | ||
// Property = ri => ri.ForceReinitialize | ||
// }, | ||
// new Option<RunInfo, string> | ||
// { | ||
// Key = "config | c", | ||
// Property = ri => ri.ConfigFilePath | ||
// } | ||
// } | ||
// }; | ||
// } | ||
//} | ||
internal static Command<RunInfo> GetCommand() | ||
{ | ||
var command = new Command<RunInfo> | ||
{ | ||
Key = _commandKey, | ||
Options = | ||
{ | ||
new Option<RunInfo, bool> | ||
{ | ||
Key = "skip-stats | s", | ||
Property = ri => ri.SkipAddingStats | ||
} | ||
} | ||
}; | ||
|
||
RunInfoBase.AddCommonOptions(command); | ||
return command; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using R5.FFDB.Core.Models; | ||
using R5.RunInfoBuilder; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace R5.FFDB.CLI.Commands | ||
{ | ||
// ffdb update-players rostered | ||
// ffdb update-players all | ||
public static class UpdateRosteredPlayers | ||
{ | ||
private const string _commandKey = "update-players"; | ||
|
||
public class RunInfo : RunInfoBase | ||
{ | ||
public override string CommandKey => _commandKey; | ||
} | ||
|
||
internal static Command<RunInfo> GetCommand() | ||
{ | ||
var command = new Command<RunInfo> | ||
{ | ||
Key = _commandKey | ||
}; | ||
|
||
RunInfoBase.AddCommonOptions(command); | ||
return command; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.