Skip to main content

Crate capy_cli

Crate capy_cli 

Source
Expand description

Project scaffolding and code generation used by the capy binary.

Structs§

FrontendConfig
Frontend configuration; the directory is conventionally frontend/.
ProjectConfig
Small, explicit project metadata loaded from capy.toml.

Enums§

FrontendDriver
The frontend stacks supported by Capy.
Generator
Supported generators, each producing a registered, compilable Rust module.

Functions§

controller_route
Exact route-builder declaration for a generated controller. Routing stays explicit because route modules may contain arbitrary application Rust. The suggested path is the snake-case name without _controller; customize it before adding this line to routes/api.rs’s Routes chain (mounted at /api).
find_project
Find a Capy application from its root or any nested directory.
generate
Generate a file and update its explicit module registry without overwrites. Migration registry markers must remain present; other code is left intact.
make_auth
Install conventional auth without overwriting application-owned code.
make_auth_with_frontend
Install framework-owned auth and optionally its application-owned React experience. Passing –frontend after a backend-only installation adds only the missing browser flow.
make_job
Generate a job with explicit registration. First use installs the optional feature, application hook and native migration. Writes are locked, formatted and rolled back on failure; application files are never silently replaced.
make_mail
Generate an application-owned mailable and compiled text/HTML templates.
make_notification
Generate a mail notification without unused channel stubs or a runtime registry.
make_resource
Generate application-owned CRUD, explicit contracts, migrations, tests and fixtures. Existing files are never overwritten. Registry changes commit together or roll back.
new_project
Create a project without overwriting an existing directory.
new_project_with_frontend
Create a project with an explicit frontend selection.