Open
Description
Which problem is this feature request solving?
Currently, when running netlify functions:create
, the CLI creates a subdirectory for the new function file. Despite being a perfectly valid approach, this is an opinionated way to create a new function file.
To developers who prefer NOT to nest their function files in subdirectories, this unexpected outcome results in them needing to do extra work to put their files where they want them, and clean up afterwards.
Describe the solution you'd like
It would be preferable to give users the option to either create a subdirectory or skip creation of a subdirectory when running the command.
Pull request (optional)
- I can submit a pull request.