Ejemplo n.º 1
0
        public static object Run(string[] args)
        {
            var package = RemotePackage.FindLatestPackageByName(args[0]);

            if (package == null)
            {
                return(string.Format("Package not found: {0}", args[0]));
            }
            else
            {
                return(package.DetailString);
            }
        }
Ejemplo n.º 2
0
        public static object Run(string[] args)
        {
            var package = RemotePackage.FindLatestPackageByName(args[0]);

            if (package == null)
            {
                return(string.Format("Package not found: {0}", args[0]));
            }
            else
            {
                package.Fetch();
                return(string.Format("Downloaded {0}", package.Nupkg));
            }
        }