示例#1
0
 public LightConsoleCommand(LightCommandExecutor executor, TextWriter outputStream)
 {
     this._executor = executor;
     this._outputStream = outputStream;
     this.IsCommand(LightVerb, "Change properties for one or more lights")
         .AllowsAnyAdditionalArguments("<light numbers>")
         .HasOption<string>("c|color=", "Hex color to apply to the light(s)", c => { this.Color = c; });
 }
示例#2
0
 public OffConsoleCommand(LightCommandExecutor executor)
 {
     this._executor = executor;
     this.IsCommand("off", "Turn the light(s) off");
 }