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

Flatten CloudSearch arguments to make commandline use easier #730

Merged
merged 5 commits into from
Apr 1, 2014

Conversation

danielgtaylor
Copy link
Contributor

Adds a generic mechanism to flatten command arguments and rehydrate those values. Adds tests for this new mechanism and the CloudSearch-specific features. In the future this can be used to migrate existing flattening code (e.g. EC2 customizations).

@jamesls please review.

@danielgtaylor
Copy link
Contributor Author

Not sure why these tests are failing since they work for me. @jamesls, could it be related to CloudSearch being in preview?

@jamesls
Copy link
Member

jamesls commented Apr 1, 2014

Does it fail if you disable cloudsearch locally in your config?

@danielgtaylor
Copy link
Contributor Author

That's funny I was just trying that right now. It does. I'm looking into how to enable it on a per-test basis, or alternatively do you have any ideas on how to handle these cases?

@jamesls
Copy link
Member

jamesls commented Apr 1, 2014

Well, this PR should be taking cloudsearch out of preview, so let's just review cloudsearch from the preview list.

@jamesls
Copy link
Member

jamesls commented Apr 1, 2014

:shipit: Looks good. Would you also mind adding something to the CHANGELOG.rst when you merge this?

* Updated documentation
* FlattenCommands -> FlattenArguments
* modify_args -> flatten_args, _find_nested_arg, _merge_member_config
* service -> service_name
* CLI registration is separated from object instantiation now
* AssertIn for tests
* Added a test for list types
* Added type to FlattenedArgument
* Fix CloudSearch argument hydrating to use correct types
* Some refactoring
danielgtaylor added a commit that referenced this pull request Apr 1, 2014
Move CloudSearch out of preview. Fixes #730.

Adds customizations to make using CloudSearch easier from the commandline.
@danielgtaylor danielgtaylor merged commit f1ddf9b into aws:develop Apr 1, 2014
@danielgtaylor danielgtaylor deleted the cs-flatten branch April 1, 2014 18:56
thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this pull request Feb 12, 2022
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