All files / src/commands/otoroshi otoroshi.get-config.command.js

92.3% Statements 12/13
100% Branches 1/1
0% Functions 0/1
92.3% Lines 12/13

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 14193x 193x 193x 193x 193x 193x 193x 193x 193x 193x   193x 193x  
import { defineCommand } from '../../lib/define-command.js';
import { operatorPrint } from '../../lib/operator-commands.js';
import { addonIdOrNameArg } from '../global.args.js';
 
export const otoroshiGetConfigCommand = defineCommand({
  description: 'Get configuration of a deployed Otoroshi in otoroshictl format',
  since: '4.4.0',
  options: {},
  args: [addonIdOrNameArg],
  async handler(_options, addonIdOrName) {
    await operatorPrint('otoroshi', addonIdOrName, 'otoroshictl');
  },
});