-
Notifications
You must be signed in to change notification settings - Fork 27
feat:added profile functionality #272
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
base: master
Are you sure you want to change the base?
feat:added profile functionality #272
Conversation
Signed-off-by: Dhiren-Mhatre <kp064669@gmail.com>
gen3/cli/__main__.py
Outdated
|
|
||
| if profile_name and not auth_config: | ||
| try: | ||
| import gen3.configure as config_tool |
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.
let's make sure all imports are at the top level
gen3/cli/__main__.py
Outdated
|
|
||
| if self.profile_name and not self.refresh_file: | ||
| try: | ||
| import gen3.configure as config_tool |
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.
let's make sure all imports are at the top level
gen3/cli/configure.py
Outdated
|
|
||
|
|
||
| @click.command() | ||
| def list_profiles(): |
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.
try not to have multiples of the same named function, it can get confusing. Just call this list_all_profiles instead
gen3/configure.py
Outdated
|
|
||
| logging = get_logger("__name__") | ||
|
|
||
| CONFIG_FILE_PATH = expanduser("~/.gen3/config") |
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.
was this used anywhere? If not, we should just replace it entirely with the new config
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.
it looks like the old config was never really finished, so let's remove all this old code and replace with the new config
Signed-off-by: Dhiren-Mhatre <kp064669@gmail.com>
Signed-off-by: Dhiren-Mhatre <kp064669@gmail.com>
New Features