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

command generate should only scan source directory if path has trailing slash #4

Closed
Ghifari160 opened this issue Dec 12, 2022 · 0 comments
Assignees
Labels
FeatureRequest New feature or request
Milestone

Comments

@Ghifari160
Copy link
Owner

Command generate detects if the source path is a directory, and scans its contents if it is. This was done so running migrate generate . destination would create map the current directory contents to destination. However, running migrate generate source destination would map the contents of source (rather than source itself) to destination. This might not be preferable. Ideally, running that command maps source itself to destination. To map the contents of source, a trailing slash can be added (i.e. source/). . can be treated as a special exception to preserve the default behavior.

@Ghifari160 Ghifari160 added the FeatureRequest New feature or request label Dec 12, 2022
@Ghifari160 Ghifari160 added this to the v0.3.0 milestone Dec 12, 2022
@Ghifari160 Ghifari160 self-assigned this Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest New feature or request
Projects
Status: Done
Development

No branches or pull requests

1 participant