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§

AccessProfile
Explicit resource authorization shape. Application policies remain editable code.
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.
make_resource_with_access
Generate a resource with an explicit access profile. None preserves the historical default: private with auth, public without auth.
make_resource_with_options
Generate optional nested list/create/show conventions for one reference target.
new_project
Create a project without overwriting an existing directory.
new_project_with_frontend
Create a project with an explicit frontend selection.
resource_add_field
Generate one additive migration and a review note without rewriting customized feature code. Required columns without a default need an application-specific backfill and are rejected.
resource_add_index
Add a composite index or unique constraint to an existing resource table.