Enable editing

This commit is contained in:
Case Duckworth 2020-11-15 12:44:36 -06:00
parent d6e2fe6f98
commit 68402ca1a3
1 changed files with 7 additions and 0 deletions

View File

@ -70,6 +70,13 @@ main() {
done
: "${MANDIR:=$DEFAULT_MANDIR}"
: "${MANSECTION:=$DEFAULT_MANSECTION}"
read -p "Title? " title
f="$(mktemp /tmp/cookbook-XXXXXX)"
template "$title" "breadpunk cookbook" "$title recipe" >"$f"
"$EDITOR" "$f"
}
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then