public override Task ExecuteAsync(string[] arguments) { if (arguments.Length != 2) { Output.WriteLine("Argument count mismatch"); return(Task.CompletedTask); } var itemName = arguments[0]; var commandValue = arguments[1]; _itemSubSystem.SendCommand(itemName, commandValue); return(Task.CompletedTask); }
public void SendCommand(object commandValue) { _itemSubSystem.SendCommand(_item.Name, commandValue); }