Skip to content
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

Teach eshost the --edit option: allows modifying --args or --tags of a host #36

Merged
merged 2 commits into from
Aug 23, 2017

Conversation

dilijev
Copy link
Collaborator

@dilijev dilijev commented Aug 18, 2017

No description provided.

@dilijev
Copy link
Collaborator Author

dilijev commented Aug 18, 2017

Putting this up now. I'll add tests before merging.

}

if (argv.args) {
// at this point in execution, implies (argv.args && !(argv.add || argv.edit))
Copy link
Owner

Choose a reason for hiding this comment

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

I think this would be more clear as a check on line 190 with the contents of this comment.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I see what you mean (approximately, I think), this whole block of if (argv.add) ... if (argv.edit) ... if (argv.args) // fail enclosed in if (argv.add || argv.edit) { ... }

@bterlson
Copy link
Owner

Looks good. I may continue hand-editing the JSON but this seems needed.

@bterlson bterlson merged commit 10dfc06 into bterlson:master Aug 23, 2017
@dilijev dilijev mentioned this pull request Aug 24, 2017
@dilijev dilijev deleted the edit branch August 24, 2017 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants