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

(GH-132) List command #225

Closed
wants to merge 4 commits into from
Closed

(GH-132) List command #225

wants to merge 4 commits into from

Conversation

Jaykul
Copy link
Contributor

@Jaykul Jaykul commented Apr 5, 2015

This set of changes fixes the various incarnations of the LIST command so that they return ... lists :-)
It depends on #224

Closes #132
Closes #223

@Jaykul Jaykul changed the title List command (GH-132) List command Apr 5, 2015

config.Quiet = true;
config.PackageNames = list_run(config).Select(p => p.Name).@join(ApplicationParameters.PackageNamesSeparator);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't leave my config set to quiet.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point

Jaykul added 2 commits April 8, 2015 01:24
Move test into the PackageService so it happens during execution regardless of how it's called.
Also did a minor refactor of line 431/436 to make the intent more readable.
@RichiCoder1
Copy link
Contributor

@Jaykul @ferventcoder Is there anything that needs to happen for these to be unblocked? Really would like to incorporate these for ChocoGUI. I can take over work if necessary.

@ferventcoder
Copy link
Member

I think I just need to take a look here and pull this in.

using services;

[CommandFor(CommandNameType.list)]
[CommandFor(CommandNameType.search)]
public sealed class ChocolateyListCommand : ICommand
public sealed class ChocolateyListCommand : IListCommand<PackageResult>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jaykul I don't see IListCommand<T> at all.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up reimplementing it, but didn't constrain T as I am unsure how you would have constrained it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found that it was already in master only.

@ferventcoder
Copy link
Member

Merged into stable at 3c12763 and master at 909ab18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[API] choco list --localonly doesn't work from API [API] Expose Package Results through the API
3 participants