@harvey-au/hover 0.1.0 → 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.
Files changed (3) hide show
  1. package/README.md +12 -2
  2. package/install.js +4 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -11,7 +11,17 @@ npm install -g @harvey-au/hover
11
11
  ## Usage
12
12
 
13
13
  ```sh
14
- hover jobs generate --pr <number>
14
+ hover jobs generate [options]
15
15
  ```
16
16
 
17
- See [GitHub releases](https://github.com/Harvey-AU/hover/releases) for changelogs.
17
+ ### Options
18
+
19
+ | Flag | Description | Default |
20
+ | ------------------- | --------------------------------------- | --------------- |
21
+ | `--jobs <N>` | Jobs per batch | `3` |
22
+ | `--interval <dur>` | Batch interval (e.g. `30s`, `2m`) | `3m` |
23
+ | `--concurrency <N>` | Per-job concurrency `1-50`, or `random` | `random` |
24
+ | `--api-url <url>` | Target API base URL | `hover.fly.dev` |
25
+
26
+ See [GitHub releases](https://github.com/Harvey-AU/hover/releases) for
27
+ changelogs.
package/install.js CHANGED
@@ -61,7 +61,7 @@ function fetch(url) {
61
61
  async function main() {
62
62
  const version = getVersion();
63
63
  const asset = getAssetName();
64
- const url = `https://github.com/${REPO}/releases/download/v${version}/${asset}`;
64
+ const url = `https://github.com/${REPO}/releases/download/cli-v${version}/${asset}`;
65
65
 
66
66
  console.log(
67
67
  `Downloading hover v${version} for ${process.platform}-${process.arch}...`
@@ -92,6 +92,9 @@ async function main() {
92
92
  fs.unlinkSync(tmpFile);
93
93
  fs.chmodSync(BIN_PATH, 0o755);
94
94
  }
95
+ if (!fs.existsSync(BIN_PATH)) {
96
+ throw new Error(`Binary not found after extraction: ${BIN_PATH}`);
97
+ }
95
98
  console.log("hover installed successfully.");
96
99
  }
97
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harvey-au/hover",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "CLI for the Hover cache-warming platform",
5
5
  "bin": {
6
6
  "hover": "bin/hover"
@@ -26,5 +26,5 @@
26
26
  "type": "git",
27
27
  "url": "https://github.com/Harvey-AU/hover"
28
28
  },
29
- "license": "UNLICENSED"
29
+ "license": "MIT"
30
30
  }