-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Add completion for stats. #10357
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
Add completion for stats. #10357
Conversation
8737fef
to
0884ddb
Compare
_docker_stats() { | ||
local counter=$(__docker_pos_first_nonflag) | ||
if [ $cword -eq $counter ]; then | ||
__docker_containers_running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't docker stats
take any number of containers as arguments? 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated just some monday morning copy pasta
0884ddb
to
b3dfe1a
Compare
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
LGTM, but has pointed out some bizarre behavior I'm seeing (ie, |
(as opposed to |
@crosbymichael this is because it is waiting for the container to start right? |
I think it is intentional |
So the stats wait for all the containers to start before they display? What if a container stops while I'm viewing stats on it? My dashboard just freezes up? 😦 |
I'm pretty sure the ability to call |
Regardless that shouldn't be a blocker for this :P |
This would be a nice to have for 1.5 ;) |
Agreed: LGTM. |
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle jess@docker.com (github: jfrazelle)