Added yt raycast script.

This commit is contained in:
Daniel Miessler 2024-09-12 08:38:33 -07:00
parent afa0cdecc1
commit e572a9ef6c

View File

@ -2,7 +2,7 @@
# Required parameters: # Required parameters:
# @raycast.schemaVersion 1 # @raycast.schemaVersion 1
# @raycast.title Extract YouTube Info # @raycast.title yt
# @raycast.mode fullOutput # @raycast.mode fullOutput
# Optional parameters: # Optional parameters:
@ -19,10 +19,9 @@ PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/go/bin:$PATH"
# Use the PATH to find and execute fabric # Use the PATH to find and execute fabric
if command -v fabric >/dev/null 2>&1; then if command -v fabric >/dev/null 2>&1; then
fabric -sp yt "${1}" yt {1}"
else else
echo "Error: fabric command not found in PATH" echo "Error: fabric command not found in PATH"
echo "Current PATH: $PATH" echo "Current PATH: $PATH"
exit 1 exit 1
fi fi