Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specify directory name for new projects #17

Open
cdepillabout opened this issue Dec 17, 2013 · 5 comments
Open

specify directory name for new projects #17

cdepillabout opened this issue Dec 17, 2013 · 5 comments

Comments

@cdepillabout
Copy link
Contributor

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?

@fujimura
Copy link
Owner

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.

@cdepillabout
Copy link
Contributor Author

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.

@fujimura
Copy link
Owner

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.

@cdepillabout
Copy link
Contributor Author

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.

@fujimura
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants