## Summary - Add `mise run zk-docs` task to concatenate all blumeops-tagged zettelkasten cards - Main project card is shown first, followed by service management logs - Uses `bat` for output (added to Brewfile) - Args are passed through to bat for custom formatting - Update CLAUDE.md to use zk-docs command with plain output options - Update README.md to note zettelkasten is private with contact email ## Test plan - [x] `mise run zk-docs` displays all 6 blumeops cards - [x] `mise run zk-docs -- --style=header --color=never --decorations=always` shows filenames without decoration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewed-on: https://forge.tail8d86e.ts.net/eblume/blumeops/pulls/10
14 lines
516 B
Bash
Executable file
14 lines
516 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#MISE description="Concatenate all blumeops zettelkasten cards"
|
|
|
|
set -euo pipefail
|
|
|
|
ZK_DIR="$HOME/code/personal/zk"
|
|
MAIN_CARD="$ZK_DIR/1767747119-YCPO.md"
|
|
|
|
# Find all files tagged with blumeops (excluding main card)
|
|
other_cards=$(grep -l '^ - blumeops$' "$ZK_DIR"/*.md 2>/dev/null | grep -v "$(basename "$MAIN_CARD")" | sort)
|
|
|
|
# Concatenate: main card first, then others
|
|
# Pass through any args to bat (e.g., --style=header --color=never --decorations=always)
|
|
bat "$@" "$MAIN_CARD" $other_cards
|