Skip to content

Commit

Permalink
Remove command sln-list (#1187)
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt authored Aug 24, 2023
1 parent 7aaaa64 commit d95f921
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 142 deletions.
106 changes: 0 additions & 106 deletions src/CommandLine/Commands/SlnListCommand.cs

This file was deleted.

18 changes: 0 additions & 18 deletions src/CommandLine/Options/SlnListCommandLineOptions.cs

This file was deleted.

18 changes: 0 additions & 18 deletions src/CommandLine/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ private static int Main(string[] args)
typeof(SpellcheckCommandLineOptions),
#if DEBUG
typeof(FindSymbolsCommandLineOptions),
typeof(ListVisualStudioCommandLineOptions),
typeof(SlnListCommandLineOptions),
#endif
});
Expand Down Expand Up @@ -200,8 +199,6 @@ private static int Main(string[] args)
#if DEBUG
case FindSymbolsCommandLineOptions findSymbolsCommandLineOptions:
return FindSymbolsAsync(findSymbolsCommandLineOptions).Result;
case SlnListCommandLineOptions slnListCommandLineOptions:
return SlnListAsync(slnListCommandLineOptions).Result;
#endif
default:
throw new InvalidOperationException();
Expand Down Expand Up @@ -662,21 +659,6 @@ private static async Task<int> SpellcheckAsync(SpellcheckCommandLineOptions opti
}

#if DEBUG
private static async Task<int> SlnListAsync(SlnListCommandLineOptions options)
{
if (!options.TryGetProjectFilter(out ProjectFilter projectFilter))
return ExitCodes.Error;

if (!TryParsePaths(options.Paths, out ImmutableArray<string> paths))
return ExitCodes.Error;

var command = new SlnListCommand(options, projectFilter, FileSystemFilter.CreateOrDefault(options.Include, options.Exclude));

CommandStatus status = await command.ExecuteAsync(paths, options.MSBuildPath, options.Properties);

return GetExitCode(status);
}

private static int ListVisualStudio(ListVisualStudioCommandLineOptions options)
{
var command = new ListVisualStudioCommand(options);
Expand Down

0 comments on commit d95f921

Please sign in to comment.