Skip to content

fastify print-routes --common-prefix --include-hooks flags #635

@bcomnes

Description

@bcomnes

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal

It would be cool if the commonPrefix and includeHooks options were exposed as flags to the print-routes commands. Arguably commonPrefix: false might even be a better, more human readable default when not debugging radix router bugs.

Would you be open to a PR adding these options as flags? Any preference on changing the default around commonPrefix?

Motivation

I learned about these two printRoutes options in the new fastify book last night and thought it would be handy to expose them in the CLI.

Example

fastify print-routes app.js --common-prefix --include-hooks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions