Use when the user describes a topic they want to blog about on strebeck.net, or asks to create a new blog post
Create a new blog post on strebeck.net by inferring metadata from what the user describes, then running the new-post.sh script.
Extract metadata from the user's message. Determine:
aws, kubernetes, devops)Confirm with the user before running. Present the inferred values:
Title: <title>
Author: <author>
Tags: <tags>
Description: <description>
Ask if they want to adjust anything.
Run the script by piping the values into it. The script reads four lines in order: title, author, tags, description. Use the repo root to locate the script:
REPO_ROOT=$(git rev-parse --show-toplevel)
printf '%s\n' '<title>' '<author>' '<tags>' '<description>' | "$REPO_ROOT/scripts/new-post.sh"
Report the created file path and remind the user to add content to the post body.