Skip to content

Commit 44520a0

Browse files
Fatpandacunnamedd
andauthored
feat(command): add tl (raycast#709)
* feat(command): add tl * Update commands/apps/terminal-translate/translate.sh Co-authored-by: Thiago Holanda <[email protected]> Co-authored-by: Thiago Holanda <[email protected]>
1 parent ed67f0b commit 44520a0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
# Dependency: requires translate-shell
4+
# Install with Homebrew: `npm install terminal-translate -g`
5+
6+
# Required parameters:
7+
# @raycast.schemaVersion 1
8+
# @raycast.title Translate
9+
# @raycast.mode fullOutput
10+
11+
# Optional parameters:
12+
# @raycast.icon 📖
13+
# @raycast.argument1 { "type": "text", "placeholder": "Word or Sentence" }
14+
# @raycast.packageName Terminal Translate
15+
16+
# Documentation:
17+
# @raycast.description Translate word or sentence.
18+
# @raycast.author Fatpandac
19+
# @raycast.authorURL https://github.com/Fatpandac
20+
21+
if ! command -v tl &> /dev/null; then
22+
echo "trans command is required (https://github.com/ShanaMaid/terminal-translate).";
23+
exit 1;
24+
fi
25+
26+
tl $1

0 commit comments

Comments
 (0)