UNPKG

fh-fhc

Version:

A Command Line Interface for FeedHenry

32 lines (30 loc) 783 B
/* globals i18n */ var common = require('../../../../common.js'); module.exports = { 'desc' : i18n._('Check a domain'), 'examples' : [{ cmd : 'fhc admin domains check --domain=<domain>', desc : i18n._('Check the domain')}], 'demand' : ['domain'], 'alias' : { 'domain':'d', 'json':'j', 0 : 'domain', 1 : 'json' }, 'describe' : { 'domain' : i18n._("Domain that you want check (E.g support.us)"), 'json' : i18n._("Output in json format") }, 'url' : function(argv) { var domain = argv.domain; return "/box/api/domains/check?domain=" + domain; }, 'method' : 'get', 'postCmd': function(argv, params, cb) { if (!argv.json) { params._table = common.createObjectTable(params); } return cb(null, params); } };