@jango-blockchained/hoox-cli 0.9.0 → 0.9.1
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/README.md +1 -1
- package/dist/index.js +23 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
> **Runtime requirement:** Bun ≥ 1.2. The bin shebang and bundle target are Bun-only; `npm install -g` will install the package but the CLI will not run under Node.js.
|
|
8
8
|
|
|
9
|
-
**v0.9.
|
|
9
|
+
**v0.9.1** — 411 unit tests, 25 command groups, 60+ subcommands. Modern-minimal visual refresh, completion footer, did-you-mean suggestions, custom help. **v0.9.0** had a banner version-lookup bug in global installs — fixed in 0.9.1.
|
|
10
10
|
|
|
11
11
|
## Features
|
|
12
12
|
|
package/dist/index.js
CHANGED
|
@@ -37049,9 +37049,30 @@ EXAMPLES:
|
|
|
37049
37049
|
registerFastpathCommand(cmd);
|
|
37050
37050
|
}
|
|
37051
37051
|
// src/ui/banner.ts
|
|
37052
|
-
import { readFileSync as readFileSync6 } from "fs";
|
|
37052
|
+
import { existsSync as existsSync8, readFileSync as readFileSync6 } from "fs";
|
|
37053
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
37054
|
+
import { dirname as dirname3, join as join8 } from "path";
|
|
37053
37055
|
var TAGLINE = "Cloudflare Workers Platform";
|
|
37054
|
-
|
|
37056
|
+
function findCliVersion() {
|
|
37057
|
+
const PKG_NAME = "@jango-blockchained/hoox-cli";
|
|
37058
|
+
let dir = dirname3(fileURLToPath2(import.meta.url));
|
|
37059
|
+
for (let i2 = 0;i2 < 5; i2++) {
|
|
37060
|
+
const pkgPath = join8(dir, "package.json");
|
|
37061
|
+
if (existsSync8(pkgPath)) {
|
|
37062
|
+
try {
|
|
37063
|
+
const pkg = JSON.parse(readFileSync6(pkgPath, "utf-8"));
|
|
37064
|
+
if (pkg.name === PKG_NAME)
|
|
37065
|
+
return pkg.version;
|
|
37066
|
+
} catch {}
|
|
37067
|
+
}
|
|
37068
|
+
const parent = dirname3(dir);
|
|
37069
|
+
if (parent === dir)
|
|
37070
|
+
break;
|
|
37071
|
+
dir = parent;
|
|
37072
|
+
}
|
|
37073
|
+
return "unknown";
|
|
37074
|
+
}
|
|
37075
|
+
var VERSION = findCliVersion();
|
|
37055
37076
|
var DISCLAIMER2 = "DISCLAIMER: Trading cryptocurrencies involves substantial risk of loss. Use at your own risk.";
|
|
37056
37077
|
var LEGACY_LINES = [
|
|
37057
37078
|
"\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557",
|
package/package.json
CHANGED