Skip to content

Commit

Permalink
feat: add T&C link to init script
Browse files Browse the repository at this point in the history
  • Loading branch information
andy blair committed Sep 30, 2024
1 parent 0a73228 commit e645b19
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nyx_client/cli/init_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. "
+ "By sharing data you must agree to the terms (https://www.get-nyx.io/terms) Agree? (y/N): "
)
if tcs.lower() != "y":
click.echo("You must agree to the terms of service!")
return

# Get instance details, to get everything from API
url = input("Enter Nyx URL: ").rstrip("/")
email = input("Enter Nyx email: ")
Expand Down

0 comments on commit e645b19

Please sign in to comment.