Skip to content

fix: remove nonexistent -i flag from bd import references#3200

Merged
maphew merged 1 commit into
gastownhall:mainfrom
maphew:fix/import-flag-typo
Apr 11, 2026
Merged

fix: remove nonexistent -i flag from bd import references#3200
maphew merged 1 commit into
gastownhall:mainfrom
maphew:fix/import-flag-typo

Conversation

@maphew

@maphew maphew commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

The bd import command takes a positional file argument, not a -i flag. Three files referenced the nonexistent flag, causing the post-merge hook to fail silently and then tell users to run a command that also fails.

Changes

  • cmd/bd/testdata/import.txtbd import -i import.jsonlbd import import.jsonl
  • cmd/bd/testdata/export.txtbd import -i export.jsonlbd import export.jsonl
  • CLAUDE.mdbd import -i .beads/issues.jsonlbd import .beads/issues.jsonl, also updated comment from 'SQLite cache' to 'Dolt database'

Context

After git pull, the old post-merge hook (which used bd import -i) would fail with:

Warning: Failed to import bd changes after merge
Run 'bd import -i .beads/issues.jsonl' manually to see the error

Running the suggested command gives:

Error: unknown shorthand flag: 'i' in -i

The current managed hooks (bd hooks install) don't have this problem, but the testdata fixtures and docs still referenced the old syntax.

The bd import command takes a positional file argument, not a -i flag.
Three files referenced the nonexistent flag:
- cmd/bd/testdata/import.txt (testscript fixture)
- cmd/bd/testdata/export.txt (testscript fixture)
- CLAUDE.md (documentation)

Also updated CLAUDE.md comment from 'SQLite cache' to 'Dolt database'
to reflect the current storage backend.

Fixes bd-6nr, related to bd-7ds.

Amp-Thread-ID: https://ampcode.com/threads/T-019d7da6-5933-71c3-87bf-45fb4594ef25
Co-authored-by: Amp <amp@ampcode.com>
@maphew maphew merged commit 9d0b7ad into gastownhall:main Apr 11, 2026
37 checks passed
@maphew maphew deleted the fix/import-flag-typo branch April 11, 2026 19:31
mzlee pushed a commit to mzlee/beads that referenced this pull request Apr 22, 2026
…l#3200)

The bd import command takes a positional file argument, not a -i flag.
Three files referenced the nonexistent flag:
- cmd/bd/testdata/import.txt (testscript fixture)
- cmd/bd/testdata/export.txt (testscript fixture)
- CLAUDE.md (documentation)

Also updated CLAUDE.md comment from 'SQLite cache' to 'Dolt database'
to reflect the current storage backend.

Fixes bd-6nr, related to bd-7ds.

Amp-Thread-ID: https://ampcode.com/threads/T-019d7da6-5933-71c3-87bf-45fb4594ef25

Co-authored-by: Amp <amp@ampcode.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant