Пример #1
0
 public IEnumerable <Solution> FindSolutions()
 {
     if (RippleFileSystem.IsSolutionDirectory())
     {
         yield return(SolutionBuilder.ReadFromCurrentDirectory());
     }
 }
Пример #2
0
        public override bool Execute(OpenNugetInput input)
        {
            var solution = SolutionBuilder.ReadFromCurrentDirectory();
            var nuspec   = solution.Specifications.FirstOrDefault(x => x.Name.EqualsIgnoreCase(input.Name));

            if (nuspec != null)
            {
                new FileSystem().LaunchEditor(nuspec.Filename);
            }

            return(true);
        }
Пример #3
0
 public IEnumerable <Solution> FindSolutions()
 {
     if (SolutionFlag.IsNotEmpty())
     {
         yield return(_graph.Value[SolutionFlag]);
     }
     else if (AllFlag || RippleFileSystem.IsCodeDirectory())
     {
         foreach (var solution in _graph.Value.AllSolutions)
         {
             yield return(solution);
         }
     }
     else
     {
         if (RippleFileSystem.IsSolutionDirectory())
         {
             yield return(SolutionBuilder.ReadFromCurrentDirectory());
         }
     }
 }