-
Notifications
You must be signed in to change notification settings - Fork 0
ADR adr008 editor integration with multiple input m Editor integration with multiple input modes
Robert Allen edited this page Dec 17, 2025
·
10 revisions
| Property | Value |
|---|---|
| ID | adr008-editor-integration-with-multiple-input-m |
| Status | accepted |
| Date | 2025-12-15 |
| Tags | git-adr-cli |
Date: 2025-12-15 Status: Accepted Deciders: User
Users need flexibility in how they provide ADR content:
- Interactive editing (terminal or GUI editors)
- Scripted/automated creation
- Pre-written content from files
Support multiple input modes for git adr new:
-
Editor mode (default): Opens configured editor
- Fallback chain:
$EDITOR→$VISUAL→vim→nano→vi - Auto-detects GUI editors and adds
--waitflag (VS Code, Sublime, Atom)
- Fallback chain:
-
File input:
git adr new "Title" --file path/to/content.md -
Stdin input:
cat file.md | git adr new "Title" -
Preview mode:
git adr new "Title" --preview(shows template without creating)
Positive:
- Works with any editor (terminal or GUI)
- Enables scripting and automation
- No editor lock-in
- Template preview helps users understand formats
Negative:
- More complex input handling logic
- Must detect stdin vs interactive mode
Synced from git-adr on 2025-12-17 09:49 UTC
Architecture Decisions
...and 24 more