From e645b19d1842c776a6bab5416a2de008d66ea099 Mon Sep 17 00:00:00 2001 From: andy blair Date: Mon, 30 Sep 2024 10:03:16 +0100 Subject: [PATCH] feat: add T&C link to init script --- nyx_client/cli/init_env.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nyx_client/cli/init_env.py b/nyx_client/cli/init_env.py index 0eb86e7..cba2d7d 100644 --- a/nyx_client/cli/init_env.py +++ b/nyx_client/cli/init_env.py @@ -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: ")