hi icon indicating copy to clipboard operation
hi copied to clipboard

specify directory name for new projects

Open cdepillabout opened this issue 11 years ago • 5 comments

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?

cdepillabout avatar Dec 17 '13 14:12 cdepillabout

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.

fujimura avatar Dec 26 '13 11:12 fujimura

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.

cdepillabout avatar Dec 26 '13 13:12 cdepillabout

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.

fujimura avatar Jan 13 '14 14:01 fujimura

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.

cdepillabout avatar Jan 13 '14 22:01 cdepillabout

I understood your circumstance, but still I'm not convinced that I should add this. Please give some more time to consider about it.

fujimura avatar Jan 16 '14 09:01 fujimura