Esempio n. 1
0
 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();
 }
Esempio n. 2
0
        private void CreateLink(LinkFromCommandArgs command)
        {
            _linkRegistryFile.InsertOrUpdateLink(command.LinkName, command.SourceDirectoryPath);

            PrintCreatedLinkToUi(command);
        }