From 52d344c6e9abcdb159f36d97500cc0035c6a7435 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 17 Oct 2018 20:46:56 -0600 Subject: [PATCH] update toml docfile --- bin/telebit-remote.js | 11 +---------- lib/en-us.toml | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/bin/telebit-remote.js b/bin/telebit-remote.js index 14a7b51..c1c77ac 100755 --- a/bin/telebit-remote.js +++ b/bin/telebit-remote.js @@ -98,16 +98,7 @@ function askForConfig(state, mainCb) { var firstSet = [ function askEmail(cb) { if (state.config.email) { cb(); return; } - //console.info(""); - console.info("Welcome!"); - console.info(""); - console.info("By using Telebit you agree to:"); - console.info(""); - console.info(" [x] Accept the Telebit™ terms of service"); - console.info(" [x] Accept the Let's Encrypt™ terms of service"); - console.info(""); - console.info("Enter your email to agree and login/create your account:"); - console.info(""); + console.info(TPLS.remote.setup.email); // TODO attempt to read email from npmrc or the like? rl.question('email: ', function (email) { email = /@/.test(email) && email.trim(); diff --git a/lib/en-us.toml b/lib/en-us.toml index 86ee017..21d77e7 100644 --- a/lib/en-us.toml +++ b/lib/en-us.toml @@ -452,5 +452,29 @@ The secret flags are: [remote] version = "telebit remote v{version}" +code = " +============================================== + Hey, Listen! +============================================== + + GO CHECK YOUR EMAIL! + + DEVICE PAIR CODE: 0000 + +============================================== +" + +[remote.setup] + +email = "Welcome! + +By using Telebit you agree to: + + [x] Accept the Telebit™ terms of service + [x] Accept the Let's Encrypt™ terms of service + +Enter your email to agree and login/create your account: +" + [daemon] version = "telebit daemon v{version}"