Summary
The `ez doc` command always writes to `DOCS.md` in the current directory (hard-coded in `cmd/ez/doc.go`). There is no `--output` / `-o` flag to specify a different output path. This is inconsistent with `ez build` which accepts `-o`.
Implementation guidance
- Open `cmd/ez/doc.go`
- Add an `-o` / `--output` string flag to the cobra command, defaulting to `"DOCS.md"`
- Pass the flag value into `generateDocs()` instead of the hard-coded path
- Follow the same pattern used by `buildCmd`'s `-o` flag in `commands.go`
Example usage
```bash
ez doc # writes to DOCS.md (default, unchanged)
ez doc -o api-reference.md # writes to custom path
ez doc --output docs/API.md # same, long form
```
Files to modify
Summary
The `ez doc` command always writes to `DOCS.md` in the current directory (hard-coded in `cmd/ez/doc.go`). There is no `--output` / `-o` flag to specify a different output path. This is inconsistent with `ez build` which accepts `-o`.
Implementation guidance
Example usage
```bash
ez doc # writes to DOCS.md (default, unchanged)
ez doc -o api-reference.md # writes to custom path
ez doc --output docs/API.md # same, long form
```
Files to modify