Skip to content

Instantly share code, notes, and snippets.

@yegle
Last active November 30, 2015 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yegle/cfebd29535c8c9c56528 to your computer and use it in GitHub Desktop.
Save yegle/cfebd29535c8c9c56528 to your computer and use it in GitHub Desktop.
document problem in beancount
#!/usr/bin/env bash
echo "Because gist doesn't support directory"
dir=$(dirname "$0")
mkdir -p "$dir/stmts/Assets/US/BoA"
touch "$dir/stmts/Assets/US/BoA/2015-01-31.statement"
option "documents" "./stmts"
2015-01-01 open Assets:US:BoA:Checking
; without a "document" directive, there's no link to the document on journal web page
option "documents" "./stmts"
2015-01-01 open Assets:US:BoA:Checking
; insert a bogus document directive here
2015-01-31 document Assets:US:BoA "stmts/Assets/US/BoA/Checking/2015-01-31.statement"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment