hi
hi copied to clipboard
specify directory name for new projects
It would be nice to have an option like --directory-name
. It would be intended to let you set a different directory name than the package name. So, for instance, your top-level directory could get created with the name foo
, even though your package name is bar-baz
.
--directory-name would default to being the same as --package-name if not specified explicity.
If I implemented this would you be willing to accept the patch?
Thanks, but same thing can be done easily with mv
. I'd like to avoid to add functions which could be archived by existing solution.
But by that logic, hi
doesn't need to exist at all. Anything that hi
can do could also just be done by hand with command line tools like mv
and vim
.
Adding a --directoryname
parameter and removes the need to do the mv
. This takes out one more annoying step and makes it easier to use hi
.
I decided to specify directory name by package name(#26). I think it's rather rare use case that creating scaffold with a directory which is different to package name.
I actually use this functionality quite a lot. I often create packages for private use where the directory name is different than the package name.
A lot of times I will use a short directory name and a longer package name.
I understood your circumstance, but still I'm not convinced that I should add this. Please give some more time to consider about it.