Skip to content

Instantly share code, notes, and snippets.

@spencergibb
Created July 21, 2015 16:09
Show Gist options
  • Save spencergibb/99371671cacf0ee84b7a to your computer and use it in GitHub Desktop.
Save spencergibb/99371671cacf0ee84b7a to your computer and use it in GitHub Desktop.
#!/bin/bash
APP_NAME=$1
APP_NAME="$(tr '[:lower:]' '[:upper:]' <<< ${APP_NAME:0:1})${APP_NAME:1}"
APP_NAME=${APP_NAME}App
PKG_NAME="io.spring.oscon.$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