Skip to content

Instantly share code, notes, and snippets.

@kpavlovsky
Created August 9, 2022 10:58
Show Gist options
  • Save kpavlovsky/68f0d77fbae8850bea938aec5d7febc0 to your computer and use it in GitHub Desktop.
Save kpavlovsky/68f0d77fbae8850bea938aec5d7febc0 to your computer and use it in GitHub Desktop.
Create a new Django SaaS from RayCast
#!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Speedpy New Project
# @raycast.mode silent
# Optional parameters:
# @raycast.icon 🚀
# @raycast.argument1 { "type": "text", "placeholder": "project name" }
on run argv
set create_command to "mv speedpycom-start-main " & {item 1 of argv} & " && cd " & {item 1 of argv}
tell application "iTerm.app"
activate
tell current window to set tb to create tab with default profile
tell current session of current window
write text "mkdir -p ~/src"
write text "cd ~/src"
write text "curl -sSL https://speedpy.com/get > speedpycom-start.zip"
write text "unzip speedpycom-start.zip"
write text create_command
write text "./init"
write text "open -a pycharm ."
end tell
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment