-
Notifications
You must be signed in to change notification settings - Fork 55
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 more parameters for connection add #218
Conversation
src/snowcli/cli/connection.py
Outdated
} | ||
print(connection_entry) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug print? 😄
prompt="Snowflake account", | ||
help="Name assigned to your Snowflake account.", | ||
help="Account name to be used to authenticate with Snowflake.", | ||
show_default=False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happened with account? Why removed prompt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, fixed
click_type=OptionalPrompt(), | ||
prompt="Snowflake region", | ||
help="Region name if not the default Snowflake Database deployment.", | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First time see region, do we need this one?
What about role, warehouse and protocol?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, region is supported by snowflake python connector. Good point about role and wh which are more important. Added!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My eyes bleeding looking at parameters and connection_entry order but iiyo
* Add more parameters for connection add * fixup! Add more parameters for connection add
Pre-review checklist
Changes description
Add more parameters to
snow connection add
to support all basic options for connection configuration.