-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
WIP feat(cli) add option to disable api in command line #722
base: master
Are you sure you want to change the base?
Conversation
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.
Thanks, it's a nice option.
codecarbon/cli/main.py
Outdated
type=str, | ||
default=api_endpoint, | ||
) | ||
overwrite_local_config("api_endpoint", api_endpoint, path=file_path) | ||
|
||
print(f"Logging in to auth server at {AUTH_SERVER_URL}") |
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.
print(f"Logging in to auth server at {AUTH_SERVER_URL}") | |
print(f"Logging into the auth server at {AUTH_SERVER_URL}") |
@@ -2,6 +2,7 @@ | |||
import time | |||
from pathlib import Path | |||
from typing import Optional | |||
from uuid import uuid4 |
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.
This import seems to not be used, right ?
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's used to set a random experiment id, since I thought the experiment id might be needed even with no api.
Not sure though, I have to check.
Ask the user to enable/disable the api during config