All files / src/commands/version version.command.js

100% Statements 13/13
100% Branches 2/2
100% Functions 1/1
100% Lines 13/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 1x 193x 193x  
import pkg from '../../../package.json' with { type: 'json' };
import { defineCommand } from '../../lib/define-command.js';
import { Logger } from '../../logger.js';
 
export const versionCommand = defineCommand({
  description: 'Display the clever-tools version',
  since: '1.0.0',
  options: {},
  args: [],
  async handler() {
    Logger.println(pkg.version);
  },
});