Ejemplo n.º 1
0
        public void Execute(LinkInput input, ILinksService links)
        {
            var manifest = links.GetLinkManifest(input.AppFolder);

            if (input.CleanAllFlag && links.LinkManifestExists(input.AppFolder))
            {
                manifest.RemoveAllLinkedFolders();

                links.Save(manifest, input.AppFolder);

                ConsoleWriter.Write("Removed all package links from the manifest file for " + input.AppFolder);

                listCurrentLinks(input.AppFolder, manifest);

                return;
            }



            if (input.BottleFolder.IsNotEmpty())
            {
                updateManifest(links, input, manifest);
            }
            else
            {
                listCurrentLinks(input.AppFolder, manifest);
            }
        }