From d5e7026b2772864d199da5b7a75fb0e3eb7bf99b Mon Sep 17 00:00:00 2001 From: temariq Date: Tue, 11 Apr 2023 01:00:19 +0300 Subject: [PATCH] feat: print version --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index be524cc..da15ab8 100755 --- a/src/index.ts +++ b/src/index.ts @@ -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'); @@ -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();