@avelonjs/cli 0.8.6 → 0.8.7

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  `@avelonjs/cli` is reeve, the official who administers an Avelon app. It is an Ink TUI on Bun that also stays fully scriptable. Reach for it to generate the application tree, sync the Next router, run Bailiff, drain errands, and ask doctor whether a push is safe.
4
4
 
5
- Bare `./reeve` opens the TUI. Any subcommand with arguments skips it. `--no-tui` and a non-TTY stdout force plain mode.
5
+ Run `reeve` without arguments in an interactive terminal to open the TUI. Subcommands, `--no-tui`, and non-interactive terminals use plain mode.
6
6
 
7
7
  ## Installation
8
8
 
@@ -10,7 +10,9 @@ Bare `./reeve` opens the TUI. Any subcommand with arguments skips it. `--no-tui`
10
10
  bun add -d @avelonjs/cli
11
11
  ```
12
12
 
13
- Put a `reeve` bin on your PATH, or run `bunx reeve`. Application `package.json` scripts call it before Next:
13
+ Run `bunx --no-install reeve --help` from the directory where you installed the package. From the
14
+ Avelon workspace root, use `bun packages/cli/src/bin.ts --help`. Application `package.json` scripts
15
+ resolve the local `reeve` binary:
14
16
 
15
17
  ```json
16
18
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avelonjs/cli",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "private": false,
5
5
  "description": "reeve CLI and TUI for generating and administering Avelon applications.",
6
6
  "license": "MIT",
@@ -40,10 +40,10 @@
40
40
  "typecheck": "tsc --noEmit"
41
41
  },
42
42
  "dependencies": {
43
- "@avelonjs/assay": "workspace:*",
44
- "@avelonjs/bailiff": "workspace:*",
45
- "@avelonjs/core": "workspace:*",
46
- "@avelonjs/next": "workspace:*",
43
+ "@avelonjs/assay": "0.8.7",
44
+ "@avelonjs/bailiff": "0.8.7",
45
+ "@avelonjs/core": "0.8.7",
46
+ "@avelonjs/next": "0.8.7",
47
47
  "ink": "5.2.1",
48
48
  "react": "18.3.1"
49
49
  },
package/src/index.ts CHANGED
@@ -29,10 +29,10 @@ export async function runReeve(
29
29
  }
30
30
  const args = argv.filter((arg) => arg !== '--no-tui')
31
31
  const command = args[0]
32
- if (command === undefined) {
32
+ if (command === undefined || command === '--help' || command === '-h') {
33
33
  writeln(io, 'Usage: reeve <command>. Bare reeve opens the TUI on a TTY.')
34
34
  writeln(io, `Commands: ${COMMANDS.join(', ')}`)
35
- return 1
35
+ return command === undefined ? 1 : 0
36
36
  }
37
37
  return await runCommand(command, args.slice(1), io)
38
38
  } catch (error) {