Skip to content
This repository was archived by the owner on Apr 28, 2018. It is now read-only.

Adding -Id and -Name params to Get-Container #85

Merged
merged 1 commit into from
Jun 8, 2016
Merged

Adding -Id and -Name params to Get-Container #85

merged 1 commit into from
Jun 8, 2016

Conversation

swernli
Copy link
Contributor

@swernli swernli commented Jun 3, 2016

As part of this change, updated to the most recent generated Docker.DotNet api (see dotnet/Docker.DotNet#81) to enable filtering on listing containers.
Also included update to the tab-completion logic in ContainerArgumentCompleter to make it more efficient.
Also updated callers of GetContainerById to more specifically filter based on requested items.

This resolves #75.

{
foreach (var id in Id)
{
WriteObject(await ContainerOperations.GetContainersById(id, DkrClient));
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens in the pipeline if we dont get back a value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this is safe; the underlying function returns an array that happens to be empty, as we discussed offline.

As part of this change, updated to the most recent generated Docker.DotNet api (see dotnet/Docker.DotNet#81) to enable filtering on listing containers.
Also included update to the tab-completion logic in ContainerArgumentCompleter to make it more efficient.
Also updated callers of GetContainerById to more specifically filter based on requested items.

This resolves #75.
@jterry75
Copy link
Contributor

jterry75 commented Jun 8, 2016

LGTM

@jterry75 jterry75 merged commit 9e86fd1 into microsoft:master Jun 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get-container should take "-name" as a parameter
3 participants