UNPKG

@lifeomic/cli

Version:

CLI for interacting with the LifeOmic PHC API.

19 lines (15 loc) 474 B
'use strict'; const { list } = require('../../workflow'); const print = require('../../print'); exports.command = 'list <datasetId>'; exports.desc = 'List workflows by dataset <datasetId>.'; exports.builder = yargs => { yargs.positional('datasetId', { describe: 'The dataset id.', type: 'string' }); }; exports.handler = async argv => { const response = await list(argv, `/workflows/ga4gh/wes/runs?datasetId=${argv.datasetId}`); print(response, argv); };