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

[API] Expose Package Results through the API #132

Closed
ferventcoder opened this issue Feb 28, 2015 · 3 comments
Closed

[API] Expose Package Results through the API #132

ferventcoder opened this issue Feb 28, 2015 · 3 comments

Comments

@ferventcoder
Copy link
Member

No description provided.

@Jaykul
Copy link
Contributor

Jaykul commented Mar 1, 2015

Do you want to change or overload the "Run()" method so it can return output?
Maybe a generic List<T> Run<T>() overload?

I mean this is going to need to include most of the commands where the user expects to see output, at least:
list, search, source list, ...

@ferventcoder
Copy link
Member Author

Actually it's more about adding other methods like List, Install, etc instead of just Run(). Run is fire and forget.

Jaykul added a commit to Jaykul/choco that referenced this issue Mar 3, 2015
Jaykul added a commit to Jaykul/choco that referenced this issue Mar 3, 2015
In order to make commands support listing, add a new command interface
 the IListCommand interface is an ICommand with an extra method "list"
Jaykul added a commit to Jaykul/choco that referenced this issue Mar 3, 2015
Refactor GenericRunner.run to a common find_command and separate the
 run and list methods which call different methods on the underlying
 command (IListCommand).

Previously we only supported GenericRunner.run, this also updates
 GetChocolatey to add a list method that calls GenericRunner.list
Jaykul added a commit to Jaykul/choco that referenced this issue Mar 4, 2015
Jaykul added a commit to Jaykul/choco that referenced this issue Mar 4, 2015
In order to make commands support listing, add a new command interface
 the IListCommand interface is an ICommand with an extra method "list"
Jaykul added a commit to Jaykul/choco that referenced this issue Mar 4, 2015
Refactor GenericRunner.run to a common find_command and separate the
 run and list methods which call different methods on the underlying
 command (IListCommand).

Previously we only supported GenericRunner.run, this also updates
 GetChocolatey to add a list method that calls GenericRunner.list
Jaykul added a commit to Jaykul/choco that referenced this issue Mar 4, 2015
Jaykul added a commit to Jaykul/choco that referenced this issue Mar 4, 2015
In order to make commands support listing, add a new command interface
 the IListCommand interface is an ICommand with an extra method "list"
Jaykul added a commit to Jaykul/choco that referenced this issue Mar 4, 2015
Refactor GenericRunner.run to a common find_command and separate the
 run and list methods which call different methods on the underlying
 command (IListCommand).

Previously we only supported GenericRunner.run, this also updates
 GetChocolatey to add a list method that calls GenericRunner.list
ferventcoder added a commit that referenced this issue Mar 5, 2015
Start exposing lists and package results via the API #132
gep13 pushed a commit to gep13/choco that referenced this issue Mar 7, 2015
gep13 pushed a commit to gep13/choco that referenced this issue Mar 7, 2015
In order to make commands support listing, add a new command interface
 the IListCommand interface is an ICommand with an extra method "list"
gep13 pushed a commit to gep13/choco that referenced this issue Mar 7, 2015
Refactor GenericRunner.run to a common find_command and separate the
 run and list methods which call different methods on the underlying
 command (IListCommand).

Previously we only supported GenericRunner.run, this also updates
 GetChocolatey to add a list method that calls GenericRunner.list
gep13 pushed a commit to gep13/choco that referenced this issue Mar 23, 2015
gep13 pushed a commit to gep13/choco that referenced this issue Mar 23, 2015
In order to make commands support listing, add a new command interface
 the IListCommand interface is an ICommand with an extra method "list"
gep13 pushed a commit to gep13/choco that referenced this issue Mar 23, 2015
Refactor GenericRunner.run to a common find_command and separate the
 run and list methods which call different methods on the underlying
 command (IListCommand).

Previously we only supported GenericRunner.run, this also updates
 GetChocolatey to add a list method that calls GenericRunner.list
gep13 pushed a commit to gep13/choco that referenced this issue Mar 23, 2015
gep13 pushed a commit to gep13/choco that referenced this issue Mar 23, 2015
In order to make commands support listing, add a new command interface
 the IListCommand interface is an ICommand with an extra method "list"
gep13 pushed a commit to gep13/choco that referenced this issue Mar 23, 2015
Refactor GenericRunner.run to a common find_command and separate the
 run and list methods which call different methods on the underlying
 command (IListCommand).

Previously we only supported GenericRunner.run, this also updates
 GetChocolatey to add a list method that calls GenericRunner.list
Jaykul added a commit to Jaykul/choco that referenced this issue Apr 5, 2015
Jaykul added a commit to Jaykul/choco that referenced this issue Apr 5, 2015
Jaykul added a commit to Jaykul/choco that referenced this issue Apr 8, 2015
@ferventcoder ferventcoder modified the milestones: 0.9.9.9, 0.9.10 Jun 29, 2015
ferventcoder pushed a commit that referenced this issue Jun 29, 2015
Ensure that PackageService and List command are able to list output for API
purposes.
ferventcoder added a commit that referenced this issue Jun 29, 2015
* ListCommand:
  (GH-223) Fix handling of LocalOnly for API
  (GH-132) Use Config.QuietOutput for List commands
  (GH-132) PackageService / ListCommand List for API
ferventcoder added a commit that referenced this issue Jun 29, 2015
* stable:
  (GH-223) Fix handling of LocalOnly for API
  (GH-132) Use Config.QuietOutput for List commands
  (GH-132) PackageService / ListCommand List for API

Conflicts:
	src/chocolatey/infrastructure.app/commands/ChocolateyListCommand.cs
	src/chocolatey/infrastructure.app/services/ChocolateyPackageService.cs
	src/chocolatey/infrastructure.app/services/INugetService.cs
	src/chocolatey/infrastructure.app/services/NugetService.cs
	src/chocolatey/infrastructure/commands/IListCommand.cs
@ferventcoder ferventcoder self-assigned this Sep 18, 2015
@ferventcoder
Copy link
Member Author

Unfortunately this one just broke almost every configuration manager that uses choco - 5782a21#commitcomment-13577152

ferventcoder added a commit that referenced this issue Oct 6, 2015
Choco pin list used to ensure that the output from the local `list_run`
command did not output on stdout. However a commit in GH-132 caused pin
to start outputting the list output as well as pin output. Fix this by
adding `config.QuietOutput = true;` around the call to List_run.

Also add integration spec scenarios to ensure this is not subject to
happen again.
ferventcoder added a commit that referenced this issue Feb 4, 2016
Any operations on sources should respect Quiet. This also corrects a
bug that was introduced by GH-132 in
8364b0e that removed output
information that is needed for tools that use choco. That has never
been introduced as a released version, so thankfully the bug doesn't
need to be worked around in any tools.
@ferventcoder ferventcoder changed the title Expose Package Results through the API [API] Expose Package Results through the API Aug 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants