-
Notifications
You must be signed in to change notification settings - Fork 907
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
Comments
Do you want to change or overload the "Run()" method so it can return output? I mean this is going to need to include most of the commands where the user expects to see output, at least: |
Actually it's more about adding other methods like List, Install, etc instead of just Run(). Run is fire and forget. |
In order to make commands support listing, add a new command interface the IListCommand interface is an ICommand with an extra method "list"
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
In order to make commands support listing, add a new command interface the IListCommand interface is an ICommand with an extra method "list"
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
In order to make commands support listing, add a new command interface the IListCommand interface is an ICommand with an extra method "list"
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
Start exposing lists and package results via the API #132
In order to make commands support listing, add a new command interface the IListCommand interface is an ICommand with an extra method "list"
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
In order to make commands support listing, add a new command interface the IListCommand interface is an ICommand with an extra method "list"
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
In order to make commands support listing, add a new command interface the IListCommand interface is an ICommand with an extra method "list"
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
…sults for API purposes
…sults for API purposes
…sults for API purposes
Ensure that PackageService and List command are able to list output for API purposes.
* 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
Unfortunately this one just broke almost every configuration manager that uses choco - 5782a21#commitcomment-13577152 |
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.
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.
No description provided.
The text was updated successfully, but these errors were encountered: