https://github.com/agilecreativity/gen-cli
gen-cli by agilecreativity
https://github.com/agilecreativity/gen-cli
Last synced: 4 months ago
JSON representation
gen-cli by agilecreativity
- Host: GitHub
- URL: https://github.com/agilecreativity/gen-cli
- Owner: agilecreativity
- License: epl-1.0
- Created: 2019-09-02T00:04:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-02T21:11:06.000Z (almost 7 years ago)
- Last Synced: 2025-07-04T00:03:45.110Z (about 1 year ago)
- Language: Clojure
- Homepage: https://github.com/agilecreativity/gen-cli
- Size: 14.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## gen-cli
[](https://clojars.org/gen-cli/lein-template)
[](https://jarkeeper.com/agilecreativity/gen-cli)
A Leiningen template for generate the basic Clojure/Java project template.
### Basic Usage
- For project that you like to include Java for interops
```shell
# To generate the CLI with Java code for JVM interops
lein new gen-cli jvm-cli +java && cd jvm-cli && lein deps :tree && lein run
```
You will get the following structure :
```
jvm-cli
├── CHANGELOG.md
├── LICENSE
├── README.org
├── project.clj
└── src
├── main
│ ├── clojure
│ │ └── jvm_cli
│ │ └── core.clj
│ ├── java
│ │ └── jvm_cli
│ │ └── Demo.java
│ └── resources
└── test
├── clojure
│ └── jvm_cli
│ └── core_test.clj
├── java
│ └── jvm_cli
│ └── DemoTest.java
└── resources
```
- For simple project (without +java option)
```shell
# To generate the new CLI without Java interops
lein new gen-cli simple-cli && cd simple-cli && lein deps :tree && lein run
```
You will get the following structure :
```
simple-cli
├── CHANGELOG.md
├── LICENSE
├── README.org
├── project.clj
└── src
├── main
│ ├── clojure
│ │ └── simple_cli
│ │ └── core.clj
│ └── resources
└── test
└── clojure
└── simple_cli
└── core_test.clj
```
For both type of projects, you will already have the initial git commit for the project.
It is ready for you to push to Github when you are ready to work on by you/your team.
*Pro Tips*
You can do this very quickly if you use [gh-utils](https://github.com/agilecreativity/gh-utils)
which allow you to create your git repository on Github from the command line.
### Links
- [Leiningen Mixed Projects](https://github.com/technomancy/leiningen/blob/stable/doc/MIXED_PROJECTS.md) template
### License
Copyright © 2019 Burin Choomnuan
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.