daplie-tools
Advanced tools
Comparing version 1.0.0-alpha.4 to 1.0.0-alpha.5
@@ -198,2 +198,3 @@ #!/usr/bin/env node | ||
console.log(" dns:set # add a device or server to a domain name"); | ||
console.log(" dns:unset # remove a device or server from a domain name"); | ||
console.log(" dns:list # show all dns records for a given domain"); | ||
@@ -225,3 +226,3 @@ console.log(""); | ||
console.log(''); | ||
console.log('GET https://oauth3.org/api/com.enom.reseller/ddns?token=' + results.token); | ||
console.log('https://oauth3.org/api/com.enom.reseller/ddns?token=' + results.token); | ||
console.log(''); | ||
@@ -309,11 +310,14 @@ }); | ||
program | ||
.usage('dns:set -n <domainname> -d <devicename> -a <answer>') | ||
.usage('dns:set -n <domainname> -t <type> -a <answer>') | ||
.option('-n, --name <value>', 'Specify a domainname / hostname') | ||
.option('-d, --device <value>', 'Name of device associated with the answer') | ||
//.option('-d, --device <value>', 'Name of device associated with the answer') | ||
.option( | ||
'-t, --type <value>' | ||
, 'Record type. One of: A, AAAA, ANAME, CNAME, FWD, MX, SRV, TXT' | ||
, /^(A|AAAA|ANAME|CNAME|FWD|MX|SRV|TXT)$/i | ||
'-t, --type <value>' | ||
, 'Record type. One of: ANAME, CNAME, FWD, MX, SRV, TXT' | ||
//, 'Record type. One of: A, AAAA, ANAME, CNAME, DEV, FWD, MX, SRV, TXT' | ||
, /^(ANAME|CNAME|FWD|MX|SRV|TXT)$/i | ||
//, /^(A|AAAA|ANAME|CNAME|DEV|FWD|MX|SRV|TXT)$/i | ||
) | ||
.option('-a, --answer <value>', 'The value of IPv4, IPv6, CNAME, or ANAME') | ||
.option('--ttl <seconds>', 'time to live (default is 300 seconds - 5 minutes)') | ||
.option('-p, --priority <n>', 'Priority (for MX record, only)') | ||
@@ -323,3 +327,3 @@ .parse(process.argv) | ||
if (helpme || !('string' === typeof program.opts().name && program.answer)) { | ||
if (helpme || !('string' === typeof program.opts().name && program.type && program.answer)) { | ||
program.help(); | ||
@@ -326,0 +330,0 @@ return; |
{ | ||
"name": "daplie-tools", | ||
"version": "1.0.0-alpha.4", | ||
"version": "1.0.0-alpha.5", | ||
"description": "Taking back the Internet", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
18353
476