UNPKG

@lifeomic/cli

Version:

CLI for interacting with the LifeOmic PHC API.

29 lines (24 loc) 731 B
'use strict'; const { post } = require('../../workflow'); const print = require('../../print'); exports.command = 'describe <datasetId>'; exports.desc = 'describe a workflow and show expected inputs and input types'; exports.builder = yargs => { yargs.positional('datasetId', { describe: 'The dataset Id.', type: 'string' }).option('toolId', { describe: 'The ID of the tool to submit for describing', alias: 't', type: 'string', demandOption: true }); }; exports.handler = async argv => { const payload = { datasetId: argv.datasetId, workflowSourceFileId: argv.toolId }; const response = await post(argv, `/workflows/ga4gh/wes/runs/parse`, payload); print(response.data, argv); };