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
Justin (jterry75) merged 1 commit into
microsoft:masterfrom
swernli:getcontainerbyname
Jun 8, 2016
Merged

Justin (jterry75) merged 1 commit into
microsoft:masterfrom
swernli:getcontainerbyname

Conversation

@swernli

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

LGTM

@jterry75
Justin (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