daplie-tools
Advanced tools
Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4
@@ -206,8 +206,7 @@ #!/usr/bin/env node | ||
.usage('dns:token -n <domainname>') | ||
.option('-n, --name <value>', 'Specify a domainname / hostname') | ||
.option('-d, --device <value>', 'Name of device / server to which this token is issued (defaults to os.hostname)') | ||
.option('-d, --device <value>', 'Name of device / server to which this token is issued (defaults to os.hostname)') | ||
.parse(process.argv) | ||
; | ||
if (helpme || 'string' !== typeof program.opts().name || !program.device) { | ||
if (helpme || 'string' !== typeof program.device) { | ||
program.help(); | ||
@@ -219,6 +218,10 @@ return; | ||
oauth3.domainsToken(program.opts()).then(function (results) { | ||
//console.log(''); | ||
//console.log('DEVICE NAME\t\tTOKEN'); | ||
//console.log(''); | ||
//console.log(program.device + '\t' + results.token); | ||
console.log(''); | ||
console.log('DOMAIN NAME\tDEVICE NAME\t\tTOKEN'); | ||
console.log('Set your DDNS client to use this URL:'); | ||
console.log(''); | ||
console.log(program.opts().name + '\t' + program.device + '\t' + results.token); | ||
console.log('GET https://oauth3.org/api/com.enom.reseller/ddns?token=' + results.token); | ||
console.log(''); | ||
@@ -225,0 +228,0 @@ }); |
{ | ||
"name": "daplie-tools", | ||
"version": "1.0.0-alpha.3", | ||
"version": "1.0.0-alpha.4", | ||
"description": "Taking back the Internet", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17783
472