@bloomai/cli 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
|
+
import { readFileSync as readFileSync2 } from "fs";
|
|
5
|
+
import path from "path";
|
|
6
|
+
import { fileURLToPath } from "url";
|
|
4
7
|
import { Command } from "commander";
|
|
5
8
|
|
|
6
9
|
// src/auth.ts
|
|
@@ -781,7 +784,10 @@ function formatTranscript(data, opts) {
|
|
|
781
784
|
|
|
782
785
|
// src/index.ts
|
|
783
786
|
var program = new Command();
|
|
784
|
-
|
|
787
|
+
var __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
788
|
+
var pkgPath = path.join(__dirname, "..", "package.json");
|
|
789
|
+
var pkg = JSON.parse(readFileSync2(pkgPath, "utf8"));
|
|
790
|
+
program.name("bloom").description("Bloom CLI \u2014 financial data for coding agents and humans").version(pkg.version);
|
|
785
791
|
registerAuthCommand(program);
|
|
786
792
|
registerInfoCommand(program);
|
|
787
793
|
registerNewsCommand(program);
|