normalize project name, try lein and pod, catch errors
This commit is contained in:
parent
a5ae5e656e
commit
fafabc5b40
12
main.coffee
12
main.coffee
|
@ -24,3 +24,15 @@ editSync = (path, pairs) ->
|
|||
|
||||
|
||||
init = (projName) ->
|
||||
projNameHyph = projName.replace(camelRx, '$1-$2').toLowerCase()
|
||||
projNameUs = projName.replace(camelRx, '$1_$2').toLowerCase()
|
||||
|
||||
try
|
||||
execSync 'type lein'
|
||||
execSync 'type pod'
|
||||
|
||||
|
||||
catch e
|
||||
logErr e.message
|
||||
|
||||
process.exit 1
|
||||
|
|
Loading…
Reference in New Issue