Prompt for creation of subdirectory on netlify functions:create #5026
Labels
area: command: functions
area: dx
good first issue
type: feature
code contributing to the implementation of a feature and/or user facing functionality
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)
The text was updated successfully, but these errors were encountered: