From cc57dc2298cea4c579a9fede2de64075c728575c Mon Sep 17 00:00:00 2001 From: Amolith Date: Thu, 19 Mar 2026 09:28:32 -0600 Subject: [PATCH] Remove stale architecture diagram from AGENTS.md --- AGENTS.md | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index a99fea3a8786b90b66e0cfc041f36613a0c7a665..6fa385cdcc6e9270a3d9adbaa73ee87fd8dea4b9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -34,29 +34,6 @@ Freely check the `--help` output of various `restic` commands as you work, so we can be absolutely certain we're writing a good, up-to-date wrapper. Any time our code differs from restic proper, PLEASE FLAG IT TO ME! -## Current Architecture & Data Flow - -Suggest updating this if implementation changes. - -```text -main.go - └── cmd.Execute() - └── rootCmd.RunE - ├── extractOwnFlags() # --dry-run, --config - ├── parseArgs() # Split into preset, command, - │ # passthrough - ├── runMenu() # BubbleTea if no command - ├── config.Resolve() # Merge TOML sections + CLI overrides - │ ├── DiscoverFiles() # Find config files - │ ├── loadFiles() # Parse and merge TOML - │ ├── buildSectionOrder() # Determine merge precedence - │ ├── interpolate() # Resolve ${section.key} refs - │ └── assemble() # Build ResolvedConfig - ├── config.IsDryRun() - ├── restic.DryRun() # Print what would execute - └── restic.Run() # syscall.Exec to restic -``` - ## Config System ### Section Merge Order @@ -95,7 +72,7 @@ Values can reference other sections: `cache-dir = "${vars.cache-root}/cache"` Presets with `@` are split: `home@cloud` → applies `[@cloud]`, `[home@]`, then `[home@cloud]` -See `example/config.toml` for comprehensive examples. +See `examples/keld/config.toml` for comprehensive examples. ## Code Patterns & Conventions @@ -155,4 +132,4 @@ Using v2 API (not v1). Key differences: 1. Make changes 2. `mise run check` - full validation -3. Test manually: `./keld --dry-run ` +3. Test manually: `keld --show-command --preset `