Last active
February 1, 2016 14:35
-
-
Save cgrant/246f00eeff2ac1c05a07 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Borrowed from https://gist.github.com/spencergibb/99371671cacf0ee84b7a | |
| APP_NAME=$1 | |
| APP_NAME="$(tr '[:lower:]' '[:upper:]' <<< ${APP_NAME:0:1})${APP_NAME:1}" | |
| APP_NAME=${APP_NAME}App | |
| PKG_NAME="com.demo.$1" | |
| CMD="curl https://start.spring.io/starter.tgz -d applicationName=$APP_NAME -d artifactId=$1 -d name=$1 -d packageName=$PKG_NAME -d baseDir=$1 -d dependencies=$2" | |
| echo "Executing $CMD | tar -xf -" | |
| $CMD | tar -xf - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment