コード例 #1
0
        public string GetPackageInstallationString(string[] userInput)
        {
            var packages = InputParser.GetPackagesFromInput(userInput);

            try
            {
                var sortedPackages = PackageSorter.GetOrderedPackages(packages);
                return(StringGenerator.GeneratePackageString(sortedPackages));
            }
            catch (CircularDependencyException e)
            {
                return(e.Message);
            }
        }