UNPKG

fh-fhc

Version:

A Command Line Interface for FeedHenry

19 lines (17 loc) 527 B
/* globals i18n */ var common = require('../../../../common.js'); module.exports = { 'desc': i18n._('Lists all data sources.'), 'examples': [{cmd: 'fhc appforms data-sources list', desc: i18n._('Lists all data sources.')}], 'demand': [], 'alias': {}, 'describe': {}, 'url': "/api/v2/appforms/data_sources", 'method': 'get', 'postCmd': function(argv, dataSources, cb) { if (!argv.json) { dataSources._table = common.createTableForDataSources(dataSources); } cb(undefined, dataSources); } };