mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-02 09:54:45 +00:00
Update cheatsheets
This commit is contained in:
29
lein
Normal file
29
lein
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lein
|
||||
|
||||
> Manage Clojure projects with declarative configuration.
|
||||
> More information: <https://leiningen.org>.
|
||||
|
||||
- Generate scaffolding for a new project based on a template:
|
||||
|
||||
`lein new {{template_name}} {{project_name}}`
|
||||
|
||||
- Start a REPL session either with the project or standalone:
|
||||
|
||||
`lein repl`
|
||||
|
||||
- Run the project's `-main` function with optional args:
|
||||
|
||||
`lein run {{args}}`
|
||||
|
||||
- Run the project's tests:
|
||||
|
||||
`lein test`
|
||||
|
||||
- Package up the project files and all its dependencies into a jar file:
|
||||
|
||||
`lein uberjar`
|
||||
Reference in New Issue
Block a user