maizzle / cli

CLI tool for the Maizzle Email Framework.
https://maizzle.com/docs/cli
MIT License
35 stars 7 forks source link

`new [repo url]` command fails when missing folder parameter #15

Closed cossssmin closed 4 years ago

cossssmin commented 4 years ago

Description:

maizzle new [repo url] fails if you don't specify the name of the folder it should create.

Steps To Reproduce:

maizzle new https://github.com/maizzle/starter-litmus.git

Result

 cd: starter-litmus: No such file or directory

Expected result:

Repo to be cloned into starter-litmus folder and dependencies installed.

Temporary fix

Specify the folder name before the Git repository:

maizzle new starter-litmus https://github.com/maizzle/starter-litmus.git
cossssmin commented 4 years ago

Fixed in v0.4.0 (see commit: https://github.com/maizzle/cli/commit/252486b9bfeee4749d02d6c90c6a7bc2f6907d4a)

You can now do this:

maizzle new https://github.com/maizzle/starter-litmus.git

... and it will create a Maizzle project in a starter-litmus folder at your current location, based on the starter found at that Git URL.

Of course, you can still specify the folder name:

maizzle new some-folder-name https://github.com/maizzle/starter-litmus.git