There was an error while loading. Please reload this page.
2 parents 38335f2 + 5f7ac47 commit c019bd6Copy full SHA for c019bd6
1 file changed
src/index.ts
@@ -149,6 +149,13 @@ async function main() {
149
return;
150
}
151
152
+ // Handle --version early (doesn't need DB)
153
+ if (command === "--version" || command === "-v") {
154
+ const pkg = require("../package.json");
155
+ console.log(`smriti ${pkg.version}`);
156
+ return;
157
+ }
158
+
159
// Initialize DB
160
const db = initSmriti();
161
0 commit comments