Skip to content

Commit

Permalink
feat(ingest/cli): init does not actually support environment variables (
Browse files Browse the repository at this point in the history
  • Loading branch information
darnaut authored Jul 25, 2024
1 parent fde71d4 commit 6fe5692
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,14 @@ datahub init
/Users/user/.datahubenv already exists. Overwrite? [y/N]: y
Configure which datahub instance to connect to
Enter your DataHub host [http://localhost:8080]: http://localhost:8080
Enter your DataHub access token (Supports env vars via `{VAR_NAME}` syntax) []:
Enter your DataHub access token []:

# acryl example
datahub init
/Users/user/.datahubenv already exists. Overwrite? [y/N]: y
Configure which datahub instance to connect to
Enter your DataHub host [http://localhost:8080]: https://<your-instance-id>.acryl.io/gms
Enter your DataHub access token (Supports env vars via `{VAR_NAME}` syntax) []: <token generated from https://<your-instance-id>.acryl.io/settings/tokens>
Enter your DataHub access token []: <token generated from https://<your-instance-id>.acryl.io/settings/tokens>
```
#### Environment variables supported
Expand Down
2 changes: 1 addition & 1 deletion metadata-ingestion/src/datahub/entrypoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def init(use_password: bool = False) -> None:
)
else:
token = click.prompt(
"Enter your DataHub access token (Supports env vars via `{VAR_NAME}` syntax)",
"Enter your DataHub access token",
type=str,
default="",
)
Expand Down

0 comments on commit 6fe5692

Please sign in to comment.