refrakt_cli/project

Project utilities — reads gleam.toml to discover the app name and DB choice.

Values

pub fn add_dependency(name: String, requirement: String) -> Bool

Add a dependency to the [dependencies] table of gleam.toml, unless the project already depends on it. Returns True when gleam.toml changed.

pub fn app_name() -> String

Read the project name from gleam.toml in the current directory.

pub fn detect_db() -> types.DbChoice

Detect DB choice from gleam.toml dependencies.

✨ Search Document