Skip to content

Conversation

@Dhiren-Mhatre
Copy link

New Features

  • Added profile-based authentication support compatible with cdis-data-client
  • New CLI commands: gen3 configure, gen3 list-profiles, gen3 show-profile
  • Global --profile option for all gen3 commands
  • Cross-compatibility with both ~/.gen3/config and ~/.gen3/gen3_client_config.ini formats

Signed-off-by: Dhiren-Mhatre <kp064669@gmail.com>

if profile_name and not auth_config:
try:
import gen3.configure as config_tool
Copy link
Contributor

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


if self.profile_name and not self.refresh_file:
try:
import gen3.configure as config_tool
Copy link
Contributor

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



@click.command()
def list_profiles():
Copy link
Contributor

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


logging = get_logger("__name__")

CONFIG_FILE_PATH = expanduser("~/.gen3/config")
Copy link
Contributor

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

Copy link
Contributor

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

Dhiren-Mhatre and others added 3 commits September 15, 2025 22:52
Signed-off-by: Dhiren-Mhatre <kp064669@gmail.com>
Signed-off-by: Dhiren-Mhatre <kp064669@gmail.com>
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.

2 participants