Commit 8a3ad90
Fix config CLI bugs, add guards, and expand tests
Fix critical bugs: global scope skips repo-local sync/delete,
sync errors no longer silently discarded, $EDITOR handling uses
shlex.split and propagates exit code. Fix important bugs: config
path --global checks existence, hardcoded paths in errors, sources
reject extra values. Add else guards on dispatch chains, extract
VALID_CANONICAL_INSTRUCTIONS constant and GlobalScope type alias.
Add 14 new CLI tests covering edit, default_source, unset, type
flags, and deprecation warnings.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 1aa40e9 commit 8a3ad90
5 files changed
Lines changed: 1217 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
5 | 23 | | |
6 | 24 | | |
7 | 25 | | |
| |||
0 commit comments