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

Simpler shorthand for Value=foo parameters #497

Merged
merged 5 commits into from
Nov 25, 2013

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Nov 20, 2013

This is a work in progress PR that does two things.

  1. For any structure of a single scalar with a key name of "Value" you can just provide the value directly (--instance-type m1.small instead of --instance-type Value=m1.small)
  2. Allow boolean parameters to be provided without a value (--ebs-optimized/--no-ebs-optimized instead of --ebs-optimized Value=true).

This fixes item 1 of #484 but not item 2. Item 2 will likely be another pull request.

The only thing left is to integrate the doc generation to only document the simpler syntax.

@garnaat
Copy link
Contributor

garnaat commented Nov 21, 2013

LGTM

This supports ``structure(scalar)`` shorthand as well
as a special case for structures of a single scalar value.
In this case you can just provide the argument directly,
instead of as a key/value pair.
Instead of having to say `--ebs-optimized Value=true`
you can just say `--ebs-optimized` or `--no-ebs-optimized`.
99% sure this is a bug in OrderedDict.
This updates the docs to support the new shorthand changes:

* Don't generate examples for --param <value> (stucture(scalar))
* Don't generate examples for top level bools (--option/--no-option)
@jamesls
Copy link
Member Author

jamesls commented Nov 25, 2013

@garnaat Mind taking another look? I've updated the doc code to remove the example docs for the affected params (jamesls@f862758)

@garnaat
Copy link
Contributor

garnaat commented Nov 25, 2013

LGTM

@jamesls jamesls merged commit 10e9ddb into aws:develop Nov 25, 2013
@jamesls jamesls deleted the simpler-shorthand branch June 23, 2014 18:29
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