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

Inline change of configuration parameters #55

Closed
fxaguessy opened this issue Feb 21, 2017 · 2 comments
Closed

Inline change of configuration parameters #55

fxaguessy opened this issue Feb 21, 2017 · 2 comments
Labels

Comments

@fxaguessy
Copy link
Contributor

As mentioned in #36, it would be nice to be able to change config parameters (for example, the region, or the aws profile) only for one command.

We could do that with, for example (git syntax)

awless -c "aws.profile=prod" -c "region=us-west-2" list instances 
@simcap
Copy link
Contributor

simcap commented Feb 21, 2017

Agreed on the flexibility it provides.

Although I see another syntax for official/long term keys like aws-profile and aws-region. More like:

awless list instances --aws-profile PROD
awless list instances --aws-region us-west-2

It will be easier to type and clearer and more searchable in your command history (CTRL+r)

I'd rather keep the other git like syntax ( ... -c "" ...) for less official and maybe more dynamic config/properties

fxaguessy added a commit that referenced this issue Mar 7, 2017
AWS_DEFAULT_REGION env variable now loaded.
Better output of `awless config list`.
Config setters now provide dialogs.
Closes #73 and #55.
@fxaguessy
Copy link
Contributor Author

Fixed by 8345814. Available in 0.0.17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants