Added yt raycast script.
This commit is contained in:
parent
e572a9ef6c
commit
18147de7ee
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Required parameters:
|
# Required parameters:
|
||||||
# @raycast.schemaVersion 1
|
# @raycast.schemaVersion 1
|
||||||
# @raycast.title yt
|
# @raycast.title Extract YouTube Info
|
||||||
# @raycast.mode fullOutput
|
# @raycast.mode fullOutput
|
||||||
|
|
||||||
# Optional parameters:
|
# Optional parameters:
|
||||||
@ -10,18 +10,20 @@
|
|||||||
# @raycast.argument1 { "type": "text", "placeholder": "YouTube link", "optional": false, "percentEncoded": true }
|
# @raycast.argument1 { "type": "text", "placeholder": "YouTube link", "optional": false, "percentEncoded": true }
|
||||||
|
|
||||||
# Documentation:
|
# Documentation:
|
||||||
# @raycast.description Run fabric yt on a YouTube link
|
# @raycast.description Run yt on a YouTube link
|
||||||
# @raycast.author Daniel Miessler
|
# @raycast.author Daniel Miessler
|
||||||
# @raycast.authorURL https://github.com/danielmiessler
|
# @raycast.authorURL https://github.com/danielmiessler
|
||||||
|
|
||||||
# Set PATH to include common locations and $HOME/go/bin
|
# Set PATH to include common locations and $HOME/go/bin
|
||||||
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/go/bin:$PATH"
|
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/go/bin:$PATH"
|
||||||
|
|
||||||
# Use the PATH to find and execute fabric
|
# Check if yt command is available
|
||||||
if command -v fabric >/dev/null 2>&1; then
|
if command -v yt >/dev/null 2>&1; then
|
||||||
yt {1}"
|
# Directly call yt with the YouTube link
|
||||||
|
yt "${1}"
|
||||||
else
|
else
|
||||||
echo "Error: fabric command not found in PATH"
|
echo "Error: yt command not found in PATH"
|
||||||
echo "Current PATH: $PATH"
|
echo "Current PATH: $PATH"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user