Skip to content

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

Merged
merged 3 commits into from
Oct 15, 2020
Merged

Receive use_docker flag from the cli #121

merged 3 commits into from
Oct 15, 2020

Conversation

chuchocd85
Copy link
Contributor

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.

Copy link
Contributor

@johnttompkins johnttompkins left a 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
Copy link
Contributor

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
Copy link
Contributor

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

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?

@johnttompkins johnttompkins merged commit f9a4910 into master Oct 15, 2020
@johnttompkins johnttompkins deleted the init-argument branch November 4, 2020 23:52
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.

5 participants