Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Make list informative, stop arg panics #7

Merged
merged 1 commit into from
Dec 18, 2014
Merged

Make list informative, stop arg panics #7

merged 1 commit into from
Dec 18, 2014

Conversation

codepope
Copy link
Contributor

For list command, precede the output with the name of the node.

For run, eval, test commands, stop panic when no params and give
informative error.

For list command, precede the output with the name of the node.

For run, eval, test commands, stop panic when no params and give
informative error.
for _, v := range config.Nodes {
fmt.Println(v)
for n, v := range config.Nodes {
fmt.Println(n, v)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is ok, but I would prefer that we add a String() method to the Node struct. I'll show you what I mean after I merge this

Copy link
Contributor

Choose a reason for hiding this comment

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

I was wrong about the string method, I forgot that we were defining that node within the config struct, so what i suggested wasn't workable.
as a work around, I just made the change here more readable
please see: https://github.com/compose/transporter/pull/10/files

nstott added a commit that referenced this pull request Dec 18, 2014
Make list informative, stop arg panics
@nstott nstott merged commit dfa2722 into compose:master Dec 18, 2014
@nstott
Copy link
Contributor

nstott commented Dec 18, 2014

👍
Thanks!

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.

None yet

2 participants