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

allow passing username and password through environment variables #52

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Roguelazer
Copy link

These are kind of long and clunky arguments but at least they're unambiguous.

@@ -40,8 +40,18 @@ def main():
help='Connection port')
parser.add_argument('-u', '--user',
help='Connection username')
parser.add_argument('--user-environment-variable-name',

Choose a reason for hiding this comment

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

What is the advantage of having configurable environment variables for these two values instead of having a default one?

Copy link
Author

Choose a reason for hiding this comment

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

Zen of Python line two, my friend. :-)

Copy link
Author

Choose a reason for hiding this comment

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

If we were going to make it implicit, I'd probably do it by allowing any command line option to be overridden by setting $CASSANDRA_MIGRATE_{uppercased_option_name}. Do you think that would be preferable?

Choose a reason for hiding this comment

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

I like that idea, but I wouldn't block this PR because of that. I think just implementing the ones that you're gonna need right now would be enough, but it's always up to you :)

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.

None yet

2 participants