Skip to content

A more customisable CLI and REPL #3018

@goodki-d

Description

@goodki-d

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

Sanic CLI currently has options for different run configurations.
Requested:

  • Ability to add custom commands for application related workflows. With application context available to the command.

Usage can be similar to how inspector commands are created currently.

Sanic REPL currently provides 4 objects by default In the repl context.
Requested:

  • Ability to add/inject additional objects to the repl context.
  • Ability to prepare REPL context. (e.g. pre importing modules, models)

Thanks

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions