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

Add an 'aws configure list' command #513

Merged
merged 4 commits into from
Nov 26, 2013
Merged

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Nov 26, 2013

This will show you where all the config values are coming from.
As part of this change, I also updated the commands.py module
to support subcommands. This makes it easy to create a top
level command that supports subcommands in a declarative manner.
You can now run:

  • aws configure
  • aws configure list

As an example, you'll see output like this:

        Name                    Value             Type    Location
        ----                    -----             ----    --------
     profile                <not set>             None    None
  access_key     ****************ABCD      config_file    ~/.aws/config
  secret_key     ****************ABCD      config_file    ~/.aws/config
      region                us-west-2      config_file    ~/.aws/config

This will show you where all the config values are coming from.
As part of this change, I also updated the commands.py module
to support subcommands.  This makes it easy to create a top
level command that supports subcommands in a declarative manner.
You can now run:

* `aws configure`
* `aws configure list`

As an example, you'll see output like this:

        Name                    Value             Type    Location
        ----                    -----             ----    --------
     profile                <not set>             None    None
  access_key     ****************ABCD      config_file    ~/.aws/config
  secret_key     ****************ABCD      config_file    ~/.aws/config
      region                us-west-2      config_file    ~/.aws/config
def __init__(self, argument_table):
def __init__(self, argument_table, command_table=None):
# command_table is an optional subcommand_table. If it's passed
# in, then we'l update the argparse to parse a 'subcommand' argument
Copy link
Contributor

Choose a reason for hiding this comment

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

"we'l" -> "we'll"

@toastdriven
Copy link
Contributor

That comment could be fixed whenever, doesn't have to be part of this. LGTM. 🚢 it.

@garnaat
Copy link
Contributor

garnaat commented Nov 26, 2013

LGTM

@jamesls jamesls merged commit 89c1551 into aws:develop Nov 26, 2013
@jamesls jamesls deleted the configure-list branch June 23, 2014 18:27
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.

3 participants