3 # This script will prompt the user for a topic name if it is not
4 # provided as an argument. Alternatively, you can run the script with
5 # the desired topic name as the first argument:
7 # implement_idea <my new topic>
10 # Function to ask for the topic name if not provided
12 read -p "Enter the topic name: " topic
16 # Main script execution
21 # Use a default topic name or ask the user for one
22 TOPIC_NAME="${1:-$(ask_for_topic)}"
24 alyverkko-cli joinfiles -t "$TOPIC_NAME" --src-dir . --pattern "*.org"
25 alyverkko-cli joinfiles -t "$TOPIC_NAME" --src-dir . --pattern "*.java"
26 alyverkko-cli joinfiles -t "$TOPIC_NAME" --src-dir . --pattern "implement*"
27 alyverkko-cli joinfiles -t "$TOPIC_NAME" --edit