#!/usr/bin/env php # Dependency: This script requires PHP # Install PHP: https://www.php.net/manual/en/install.php # # Required parameters: # @raycast.schemaVersion 1 # @raycast.title Lorem Ipsum # @raycast.mode compact # @raycast.packageName Lorem Ipsum # # Optional parameters: # @raycast.icon 📝 # @raycast.argument1 { "type": "text", "placeholder": "amount", "optional": true } # @raycast.argument2 { "type": "text", "placeholder": "words,sentences,paragraphs", "optional": true } # # Documentation: # @raycast.description Generate lorem ipsum text. Choose between words, sentences, or paragraphs (defaults to words). If amount not specified, defaults to 7 for words, 3 for sentences, and 3 for paragraphs. # @raycast.author Robert Cooper # @raycast.authorURL https://github.com/robertcoopercode {$type}($count)); shell_exec("echo '$arg' | pbcopy"); $noun = $count > 1 ? $type : substr($type, 0, -1); echo "Copied ${count} ${noun} to clipboard";