Skip to content

Commit

Permalink
Address minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
amritghimire committed Oct 17, 2024
1 parent 375fb2a commit 0bc4d4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions src/datachain/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ def add_show_args(parser: ArgumentParser) -> None:
def add_studio_parser(subparsers, parent_parser) -> None:
studio_help = "Commands to authenticate Datachain with Iterative Studio"
studio_description = (
"Authenticate Datachain with Studio and set the token."
" Once this token has been properly configured,\n"
" Datachain will utilize it for seamlessly sharing datasets\n"
" and using Studio features from CLI"
"Authenticate Datachain with Studio and set the token. "
"Once this token has been properly configured,\n"
"Datachain will utilize it for seamlessly sharing datasets\n"
"and using Studio features from CLI"
)

studio_parser = subparsers.add_parser(
Expand All @@ -122,7 +122,7 @@ def add_studio_parser(subparsers, parent_parser) -> None:
studio_login_help = "Authenticate Datachain with Studio host"
studio_login_description = (
"By default, this command authenticates the Datachain with Studio\n"
" using default scopes and assigns a random name as the token name."
"using default scopes and assigns a random name as the token name."
)
login_parser = studio_subparser.add_parser(
"login",
Expand Down Expand Up @@ -165,9 +165,7 @@ def add_studio_parser(subparsers, parent_parser) -> None:
)

studio_logout_help = "Logout user from Studio"
studio_logout_description = (
"This removes the studio token from your global config.\n"
)
studio_logout_description = "This removes the studio token from your global config."

studio_subparser.add_parser(
"logout",
Expand Down
2 changes: 1 addition & 1 deletion src/datachain/studio.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def login(args: "Namespace"):
name = args.name
hostname = (
args.hostname
or os.environ.get("DATACHAIN_STUDIO_HOSTNAME")
or os.environ.get("DVC_STUDIO_HOSTNAME")
or config.get("url")
or STUDIO_URL
)
Expand Down

0 comments on commit 0bc4d4f

Please sign in to comment.