- Create internal/configfile package for config.json handling - bd init now creates .beads/config.json with database, version, and jsonl_export fields - Database discovery checks config.json first, falls back to beads.db - Update .gitignore to not ignore config.json (part of repo state) - Update test to expect beads.db and config.json - Backward compatible with existing beads.db-only setups
16 lines
498 B
Plaintext
16 lines
498 B
Plaintext
# Test bd init command
|
|
bd init --prefix test
|
|
stdout 'initialized successfully'
|
|
exists .beads/beads.db
|
|
exists .beads/config.json
|
|
exists .beads/.gitignore
|
|
grep '^\*\.db$' .beads/.gitignore
|
|
grep '^\*\.db-journal$' .beads/.gitignore
|
|
grep '^\*\.db-wal$' .beads/.gitignore
|
|
grep '^\*\.db-shm$' .beads/.gitignore
|
|
grep '^daemon\.log$' .beads/.gitignore
|
|
grep '^daemon\.pid$' .beads/.gitignore
|
|
grep '^bd\.sock$' .beads/.gitignore
|
|
grep '^!\*\.jsonl$' .beads/.gitignore
|
|
grep '^!config\.json$' .beads/.gitignore
|