# Test bd show command
bd init --prefix test

# Create issue and capture its hash ID
bd create 'Test issue for show'
cp stdout issue.txt
grep 'Created issue: test-' issue.txt

# Extract ID using grep
exec sh -c 'grep -oE "test-[a-z0-9]+" issue.txt > issue_id.txt'

# Show the issue
exec sh -c 'bd show $(cat issue_id.txt)'
stdout 'Test issue for show'
stdout 'Status:'
stdout 'Priority:'
