private static void On(SeekCommand command) { fileSystem.Seek(command.FileHandle, command.Position); WriteSuccessLine(string.Format("current position is {0}", command.Position)); }
public override bool TryBuildCommand(string[] args, out object command) { var sk = (command = new SeekCommand()) as SeekCommand; return RequireFileHandle(args, 0, out sk.FileHandle) && RequirePosition(args, 1, out sk.Position); }