We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 575db52 commit 1ec6f4bCopy full SHA for 1ec6f4b
src/cli.ts
@@ -14,12 +14,17 @@ interface CliOptions {
14
horizontalSpacing: number;
15
}
16
17
+// Read version from package.json
18
+const packageJsonPath = path.join(__dirname, '..', 'package.json');
19
+const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
20
+const version = packageJson.version;
21
+
22
const program = new Command();
23
24
program
25
.name('plan-viz')
26
.description('Convert Apache Data Fusion Physical Execution Plans to Excalidraw JSON')
- .version('0.1.7');
27
+ .version(version);
28
29
30
.option('-i, --input <file>', 'Input file containing the execution plan')
0 commit comments