Skip to main content

Crate fse_cli

Crate fse_cli 

Source
Expand description

Library behind the fse binary, split out so the migrate flow is integration-testable without spawning the binary.

Modules§

config
fse.toml — all optional, all defaulted to the starter layout, so a fresh app needs no config file at all. Nothing app-specific lives in the CLI itself: even the framework’s required-columns contract arrives here.
migrate
The fse migrate flow: parse the tables folder, diff against the snapshot, write a plain sqlx migration, then apply everything pending.
modules
Module crates from the app’s point of view: discovery via cargo metadata, their shipped schema snapshots for fse migrate, and fse sync — copying their frontend/ sources into .fse/modules/ where the app’s Astro build layers them in.
prepare
Native replacement for cargo sqlx prepare, so a user of the framework never needs sqlx-cli installed — just fse.