@kaynooo/cli-doctor 0.7.0 → 0.9.0
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 +9 -2
- package/dist/cli-bin.js +574 -88
- package/dist/cli.js +571 -87
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,16 +10,23 @@ doctor -q # only the failing checks, nothing when all pass
|
|
|
10
10
|
doctor --only tea --only bun # just these checks (a package such as cli-forgejo, tea, hooks, bun, completions)
|
|
11
11
|
doctor --fix --dry-run # what --fix would run
|
|
12
12
|
doctor --fix # run the fixes, then check again
|
|
13
|
+
doctor --install # pick the packages to add from a checklist
|
|
14
|
+
doctor --install forgejo check hooks # or name them: a package, one of its bins, hooks, all
|
|
13
15
|
```
|
|
14
16
|
|
|
15
17
|
| Check | Passes when | Fix |
|
|
16
18
|
| --- | --- | --- |
|
|
17
19
|
| each `@kaynooo/cli-*` package | it is installed globally, its bins are on the PATH and it is no older than the version `bun info` serves | `bun install -g <package>@<latest>`, and one line installing every outdated package at once |
|
|
18
|
-
| `
|
|
20
|
+
| `needs` | the system tools the installed packages need are on the PATH: glab for `gl`, docker for `dc`, `dlog`, `dx` and `sf` | install them by hand, doctor never installs a system package |
|
|
21
|
+
| `tea` | `ft` is installed, tea is installed, logged in to git.kaynooo.fr and `tea api version` answers, since `ft` goes through it | `tea login add --url https://git.kaynooo.fr --oauth` |
|
|
19
22
|
| `hooks` | `~/.claude/settings.json` wires the hooks one way: the `cli-hooks@kaynooo-cli` plugin enabled, or the `cli` mod listed in `CLAUDE_CODE_PLUGIN_DIRS`; both at once fails, every call being checked twice | `claude plugin install cli-hooks --marketplace ...`, or `claude plugin disable` for the doubled one |
|
|
20
23
|
| `bun` | Bun satisfies the `engines.bun` range of every installed package | `bun upgrade` |
|
|
21
24
|
|
|
22
|
-
A registry that does not answer leaves a package passing, with a note. Exit codes: 0 every check passed, 1 one failed, 2 a usage error.
|
|
25
|
+
Only the packages that are installed are checked: a package left out is no failure, and the last line counts them. A registry that does not answer leaves a package passing, with a note. Exit codes: 0 every check passed, 1 one failed, 2 a usage error.
|
|
26
|
+
|
|
27
|
+
## --install
|
|
28
|
+
|
|
29
|
+
`--install` adds packages: the names given (a package such as `forgejo`, one of its bins such as `ft`, `hooks` for the Claude Code plugin, or `all`), else a checklist on a terminal that shows each package's bins, what it does and what it needs. Off a terminal, names are required. Before installing, each package is checked against its needs: a missing required tool (tea for `ft`, glab for `gl`, docker for `dc`) leaves the package out unless `--force`, and `hooks` installs `guard` first. The installs run in one `bun install -g`, then the plugin, then the checks and fixes of what was installed. `--list` prints the choices and `--dry-run` what would run. Exits 1 when a package was left out.
|
|
23
30
|
|
|
24
31
|
## --fix
|
|
25
32
|
|