Skip to content

Commit a30eb6a

Browse files
committed
docs: highlight file-based commands
1 parent f28d63f commit a30eb6a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
- [**Well-formed I/O**](#well-formed-io): Schemas schemas for arguments, options, environment variables, and output
4242
- [**Inferred types**](#inferred-types): generic type flow from schemas to `run` callbacks with zero manual annotations
4343
- [**Global options**](#global-options): `--format`, `--full-output`, `--help`, `--json`, `--update`, `--version` on every CLI for free
44+
- [**File-based commands**](#file-based-commands): load commands and nested sub-commands from a `commands/` directory
4445
- [**Standalone binaries**](#standalone-binaries): build macOS, Linux, and Windows executables with verified updates and initial installers
4546
- [**Light API surface**](#light-api-surface): `Cli.create()`, `Cli.command()`, `.command()`, `.fs()`, and `.serve()`
4647
- [**Middleware**](#middleware): composable before/after hooks with typed dependency injection via `cli.use()`
@@ -258,9 +259,9 @@ $ my-cli --help
258259
# --version Show version
259260
```
260261

261-
#### File-based commands
262+
### File-based commands
262263

263-
Use `fs()` when each command should live in its own module. The entrypoint owns the CLI configuration and discovers `commands/` beside itself.
264+
Use `fs()` when each command should live in its own file. The entrypoint owns the CLI configuration and discovers `commands/` beside itself.
264265

265266
```text
266267
src/

0 commit comments

Comments
 (0)