# Test bd close command bd init --prefix test # Create issue and capture its hash ID bd create 'Issue to close' cp stdout issue.txt exec sh -c 'grep -oE "test-[a-z0-9]+" issue.txt > issue_id.txt' # Close the issue exec sh -c 'bd close $(cat issue_id.txt) --reason Fixed' stdout 'Closed test-' # Verify it's closed exec sh -c 'bd show $(cat issue_id.txt)' stdout 'closed'