Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove command sln-list #1187

Merged
merged 4 commits into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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