-
Notifications
You must be signed in to change notification settings - Fork 16
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
eshost --add: support inclusion of --tags (see details for examples) #31
Conversation
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.
LGTM
1d4a09d
to
61d171b
Compare
lib/host-manager.js
Outdated
path = Path.join(process.cwd(), path); | ||
} | ||
|
||
config.hosts[name] = { type, path, args }; | ||
if (tags) { | ||
if (typeof tags === 'string') { |
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.
Meh. I suppose these could be combined into a single expression
lib/host-manager.js
Outdated
config.hosts[name] = { type, path, args }; | ||
if (tags) { | ||
if (typeof tags === 'string') { | ||
tags = [tags]; |
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.
Isn't this already taken care of with hostTags = argv.tags.split(',');
(and then hostTags
is passed in for the tags
param to this function?
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.
Indeed it is. I will correct this.
- eshost --add ch ch `which ch` --tags latest - eshost --add ch ch `which ch` --tags latest,greatest Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
61d171b
to
97c9cda
Compare
Assuming the "approval" is still valid, I'd like to include this in tested features, so I'm landing it. |
which ch
--tags latestwhich ch
--tags latest,greatestTests will follow in another PR which contains all the tests that I've written
Signed-off-by: Rick Waldron waldron.rick@gmail.com