|
|
|
@ -9,13 +9,14 @@ await Host.CreateDefaultBuilder()
|
|
|
|
|
[Command(Description = "Downloads SCP: SL assembly files.")]
|
|
|
|
|
public class AppCommand
|
|
|
|
|
{
|
|
|
|
|
[Option(Description = "Branch.")]
|
|
|
|
|
public string Branch { get; set; } = ContentDownloader.DEFAULT_BRANCH;
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
[Option(Description = "Files to download.")]
|
|
|
|
|
[Option(Description = "Files to download.", LongName = "filesToDownload")]
|
|
|
|
|
public string FilesToDownload { get; set; } = "Assembly-CSharp.dll";
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
[Option(Description = "Branch.", LongName = "branch")]
|
|
|
|
|
public string Branch { get; set; } = ContentDownloader.DEFAULT_BRANCH;
|
|
|
|
|
|
|
|
|
|
public async Task<int> OnExecute(IConsole console)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|