public static Command GetCommand() { var command = new Command("list", LocalizableStrings.NetListCommand); command.AddArgument(SlnOrProjectArgument); command.AddCommand(ListPackageReferencesCommandParser.GetCommand()); command.AddCommand(ListProjectToProjectReferencesCommandParser.GetCommand()); return(command); }
private static Command ConstructCommand() { var command = new DocumentedCommand("list", DocsLink, LocalizableStrings.NetListCommand); command.AddArgument(SlnOrProjectArgument); command.AddCommand(ListPackageReferencesCommandParser.GetCommand()); command.AddCommand(ListProjectToProjectReferencesCommandParser.GetCommand()); command.SetHandler((parseResult) => parseResult.HandleMissingCommand()); return(command); }