Exemplo n.º 1
0
        private async Task ExecuteConsoleCommandFileMove(Options options)
        {
            var fileMoveCommand = new FileMoveCommand(options);
            await _mediator.Send(fileMoveCommand);

            LogInformationMessage($"File \"{fileMoveCommand.OldFileName}\" has been moved to {fileMoveCommand.NewFileName}");
            _consolePrinter.PrintFileMovedSuccessful(fileMoveCommand.OldFileName, fileMoveCommand.NewFileName);
        }