Skip to content

Commit

Permalink
feat: print version
Browse files Browse the repository at this point in the history
  • Loading branch information
akhdrv committed Apr 10, 2023
1 parent 29cb7e0 commit d5e7026
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Statistics from './statistics';
import { generateReport, measureStartingPoint, report } from './reporter';
import { CliConfig } from './config/common';
import { debug, error, info, setLogLevel } from './utils/logger';
import getCurrentVersion from './utils/version';

const cli = createCommand('perftool');

Expand All @@ -30,6 +31,8 @@ function getCliConfig(include: string[], options: OptionValues): CliConfig {
}

async function start() {
info(`Perftool v.${await getCurrentVersion()}`);

await cli.parseAsync();
const options = cli.opts();

Expand Down

0 comments on commit d5e7026

Please sign in to comment.