private void PrintCreatedLinkToUi(LinkFromCommandArgs command) { _ui.Write("Created link ", ConsoleColor.DarkGreen) .WriteQuoted(command.LinkName, ConsoleColor.Green) .Write(" pointing to ", ConsoleColor.DarkGreen) .WriteQuoted(command.SourceDirectoryPath, ConsoleColor.Green) .End(); }
private void CreateLink(LinkFromCommandArgs command) { _linkRegistryFile.InsertOrUpdateLink(command.LinkName, command.SourceDirectoryPath); PrintCreatedLinkToUi(command); }