-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: add T&C link to init script #20
Conversation
e5bf2c2
to
93e822b
Compare
93e822b
to
e645b19
Compare
nyx_client/cli/init_env.py
Outdated
@@ -35,6 +35,15 @@ def init_env(filename: str = ".env"): | |||
click.echo("Exiting with no changes") | |||
return | |||
|
|||
# Check user is aware of T&Cs | |||
tcs = input( | |||
"The Nyx SDK allows the sharing of links through a Nyx Instance. " |
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.
Is this enough? or do we want to call out each point as in UI?
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.
Valid point, I think copying the UI makes sense, even if it's just for consistence
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.
I confirm that I have the right to share this data. | ||
I confirm that this data does not contain any Personally Identifiable Information | ||
or otherwise sensitive information, and that it does not violate any laws. | ||
I confirm I have read the Nyx Terms of Service and I am content to proceed. |
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.
link?
nyx_client/cli/init_env.py
Outdated
@@ -21,6 +21,19 @@ | |||
from nyx_client.cli.common import SDK_CLI_DEFAULT_HEADERS | |||
from nyx_client.identity_auth import IdentityAuth | |||
|
|||
TERMS = """ | |||
To use Nyx you must agree to our Terms of service when sharing content |
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.
Capitalise Service?
nyx_client/cli/init_env.py
Outdated
# Check user is aware of T&Cs | ||
tcs = input(TERMS) | ||
if tcs.lower() != "y": | ||
click.echo("You must agree to the terms of service!") |
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.
Terms of Service
?
No description provided.