UNPKG

@lifeomic/cli

Version:

CLI for interacting with the LifeOmic PHC API.

19 lines (15 loc) 430 B
'use strict'; const { get } = require('../../api'); const print = require('../../print'); exports.command = 'get <taskId>'; exports.desc = 'Fetch tasks information by <taskId>'; exports.builder = yargs => { yargs.positional('taskId', { describe: 'The task ID.', type: 'string' }); }; exports.handler = async argv => { const response = await get(argv, `/v1/tasks/${argv.taskId}`); print(response.data, argv); };