Skip to content

Prompt for creation of subdirectory on netlify functions:create #5026

Open
@whitep4nth3r

Description

@whitep4nth3r

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions