-
Notifications
You must be signed in to change notification settings - Fork 48
Receive use_docker flag from the cli #121
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
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.
Is there a way to prompt for the arguments in the plugins? otherwise each argument addition will require a change to both the cloudformation cli and the plugin. Would be good to structure it in a way to where an argument addition on the plugin just means one change to the plugin.
args = sub_parser.parse_args(["-d"]) | ||
|
||
assert args.language == "python36" | ||
assert args.use_docker is True |
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.
nit: assert args.use_docker
args = sub_parser.parse_args([]) | ||
|
||
assert args.language == "python37" | ||
assert args.use_docker is False |
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.
same here can simplify
"Use docker for platform-independent packaging (Y/n)?\n", | ||
validate_no, | ||
"This is highly recommended unless you are experienced \n" | ||
"with cross-platform Python packaging.", | ||
) | ||
|
||
project.settings["use_docker"] = self._use_docker |
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.
We should make this useDocker
for consistency with protocolVersion
and JSON convention, right?
Issue #, if available:
Description of changes:
Add ability to consume the use docker flag from the
cloudformation-cli
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.