mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
17 lines
617 B
C#
17 lines
617 B
C#
namespace Velopack.Vpk.Commands;
|
|
|
|
public abstract class PlatformCommand : OutputCommand
|
|
{
|
|
public string TargetRuntime { get; private set; }
|
|
|
|
protected CliOption<string> TargetRuntimeOption { get; private set; }
|
|
|
|
protected PlatformCommand(string name, string description, RuntimeOs targetOs = RuntimeOs.Unknown) : base(name, description, targetOs)
|
|
{
|
|
TargetRuntimeOption = AddOption<string>((v) => TargetRuntime = v, "-r", "--runtime")
|
|
.SetDescription("The target runtime to build packages for.")
|
|
.SetArgumentHelpName("RID")
|
|
.MustBeSupportedRid();
|
|
}
|
|
}
|