-
-
Notifications
You must be signed in to change notification settings - Fork 180
Scripts
alandipert edited this page Dec 13, 2014
·
19 revisions
It's possible to create self-contained, executable Clojure scripts that can bring in Maven dependencies, using a shebang. Here is an example that runs a game like Lunar Lander:
Put this into a file called lunarlander.boot
:
#!/usr/bin/env boot
(set-env! :dependencies '[[alandipert/hyperturbo "0.0.1-SNAPSHOT"]])
(require '[alandipert.hyperturbo.lunar-lander :refer [run]])
(defn -main [& args]
(run))
Make the file executable:
chmod +x lunarlander.boot
Run the script:
./lunarlander.boot
You can find other developers and users in the #hoplon
channel on freenode IRC or the boot slack channel.
If you have questions or need help, please visit the Discourse site.
- Environments
- Boot environment
- Java environment
- Tasks
- Built-ins
- Third-party
- Tasks Options
- Filesets
- Target Directory
- Pods
- Boot Exceptions
- Configuring Boot
- Updating Boot
- Setting Clojure version
- JVM Options
- S3 Repositories
- Scripts
- Task Writer's Guide
- Require inside Tasks
- Boot for Leiningen Users
- Boot in Leiningen Projects
- Repl reloading
- Repository Credentials and Deploying
- Snippets
- Troubleshooting
- FAQ
- API docs
- Core
- Pod
- Util