mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-08 07:11:06 +00:00
Added yt raycast script.
This commit is contained in:
parent
9aebafb795
commit
afa0cdecc1
28
patterns/raycast/yt
Normal file
28
patterns/raycast/yt
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Required parameters:
|
||||||
|
# @raycast.schemaVersion 1
|
||||||
|
# @raycast.title Extract YouTube Info
|
||||||
|
# @raycast.mode fullOutput
|
||||||
|
|
||||||
|
# Optional parameters:
|
||||||
|
# @raycast.icon 📹
|
||||||
|
# @raycast.argument1 { "type": "text", "placeholder": "YouTube link", "optional": false, "percentEncoded": true }
|
||||||
|
|
||||||
|
# Documentation:
|
||||||
|
# @raycast.description Run fabric yt on a YouTube link
|
||||||
|
# @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 yt "${1}"
|
||||||
|
else
|
||||||
|
echo "Error: fabric command not found in PATH"
|
||||||
|
echo "Current PATH: $PATH"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user