Skip to content

Commit

Permalink
Added create_story_explanation.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmiessler committed Oct 1, 2024
1 parent fcddedf commit a67dd05
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions patterns/raycast/create_story_explanation
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Extract Wisdom
# @raycast.mode fullOutput

# Optional parameters:
# @raycast.icon 🧠
# @raycast.argument1 { "type": "text", "placeholder": "Input text", "optional": false, "percentEncoded": true}

# Documentation:
# @raycast.description Run fabric create_story_explanation on the input text
# @raycast.author Daniel Miessler
# @raycast.authorURL https://github.com/danielmiessler

# Set PATH to include common locations and $HOME/go/bin
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/go/bin:$PATH"

# Use the PATH to find and execute fabric
if command -v fabric >/dev/null 2>&1; then
fabric -sp create_story_explanation "${1}"
else
echo "Error: fabric command not found in PATH"
echo "Current PATH: $PATH"
exit 1
fi

0 comments on commit a67dd05

Please sign in to comment.