1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

[PM-26337] Create a Claude markdown file (#16676)

* Initial claude markdown with lots of help from the team.
This commit is contained in:
Mick Letofsky
2025-10-03 16:48:01 +02:00
committed by GitHub
parent 6c2791338e
commit e14c8c6a9c
6 changed files with 150 additions and 0 deletions

13
apps/cli/CLAUDE.md Normal file
View File

@@ -0,0 +1,13 @@
# CLI - Critical Rules
- **ALWAYS** output structured JSON when `process.env.BW_RESPONSE === "true"`
- Use Response objects (MessageResponse, ListResponse, etc.) from `/apps/cli/src/models/response/`
- DON'T write free-form text that breaks JSON parsing
- **NEVER** use `console.log()` for output
- Use `CliUtils.writeLn()` to respect `BW_QUIET` and `BW_RESPONSE` environment variables
- Use the `ConsoleLogService` from the `ServiceContainer`
- **ALWAYS** respect `BW_CLEANEXIT` environment variable
- Exit code 0 even on errors when `BW_CLEANEXIT` is set
- Required for scripting environments that need clean exits