UNPKG

@lifeomic/cli

Version:

CLI for interacting with the LifeOmic PHC API.

19 lines (15 loc) 458 B
'use strict'; const { get } = require('../../api'); const print = require('../../print'); exports.command = 'get <groupId>'; exports.desc = 'Get group information by <groupId>'; exports.builder = yargs => { yargs.positional('groupId', { describe: 'The ID of the group to fetch.', type: 'string' }); }; exports.handler = async argv => { const response = await get(argv, `/v1/account/groups/${argv.groupId}`); print(response.data, argv); };