Add the format option to the docker stack ls command#31557
Add the format option to the docker stack ls command#31557thaJeztah merged 1 commit intomoby:masterfrom boaz0:add_stack_ls
Conversation
cli/command/formatter/stack.go
Outdated
This ain't right, at that point Otherwise, design LGTM for me 👍 |
|
@vdemeester thanks for the feedback. |
|
hum, tricky, maybe ? /cc @dnephin |
|
Added documentation |
|
Design LGTM |
There was a problem hiding this comment.
Are both the additional lines intentionally added?
There was a problem hiding this comment.
No. I will remove those two. Thanks for noticing!
👍
There was a problem hiding this comment.
😱 what the hell is wrong with me.
Thank you for noticing.
vdemeester
left a comment
There was a problem hiding this comment.
LGTM 🐮
/cc @thaJeztah for docs-review
thaJeztah
left a comment
There was a problem hiding this comment.
left some minor notes, but LGTM once addressed
There was a problem hiding this comment.
Can you change "will either output" to "either outputs" ?
|
That's odd. There is a compilation error:
It says that in return nil, fmt.Errorf("cannot get label %s for service %s", convert.LabelNamespace, service.ID) |
|
@ripcurld0 I think you should rebase your code against master 👼 Guess something has been merged that uses |
There was a problem hiding this comment.
Why do we need this change?
Also, it would be better to replace whitespace sequence to a single whitespace before comparison
There was a problem hiding this comment.
I had to change it because the tabwriter in formatter/formatter.go is different from the one that was used in stack/list.go.
Yep, that sounds like a good idea! I will do that 👍
Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
|
/cc @albers @sdurrheimer |
- What I did
Add the format option to the docker-stack-ls command
related to #30431
- How I did it
- How to verify it
TESTDIRS='cli/command/formatter/' TESTFLAGS='-test.run ^TestStack*' hack/make.sh test-unit