hay-kot / scaffold

A cookie cutter alternative with in-project scaffolding for generating components, controllers, or other common code patterns.
https://hay-kot.github.io/scaffold/
MIT License
63 stars 8 forks source link

--output-dir not working in v0.5.0 #243

Open kmalaver opened 6 days ago

kmalaver commented 6 days ago

First Check

What is the issue you are experiencing?

In the last version the flag --output-dir is not working, the project is generated in the local path

Steps to Reproduce (or failing test case)

run scaffold new example --output-dir='"./my/custom/path"

Scaffold Version (scaffold --version)

v0.5.0

hay-kot commented 4 days ago

This still works for me, the issue is with your command order I believe. It should be

run scaffold new --output-dir='"./my/custom/path" example 

Which is dumb, but it's a limitation of the CLI library I'm using. They've fixed this in v3 which is in pre-release right now.

I'm going to look into migrating to v3 over Christmas when I have some time off and have time for a nice refactor 😄