Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x 193x | import { defineCommand } from '../../lib/define-command.js';
import { printResults } from '../../lib/ng-print.js';
import { humanJsonOutputFormatOption, orgaIdOrNameOption } from '../global.options.js';
import { ngAnyIdOrLabelArg } from './ng.args.js';
import { ngResourceTypeOption } from './ng.options.js';
export const ngSearchCommand = defineCommand({
description: 'Search Network Groups, members or peers and get their details',
since: '3.12.0',
options: {
type: ngResourceTypeOption,
org: orgaIdOrNameOption,
format: humanJsonOutputFormatOption,
},
args: [ngAnyIdOrLabelArg],
async handler(options, idOrLabel) {
const { org, format } = options;
const type = options.type;
await printResults(idOrLabel, org, format, 'search', type);
},
});
|