cli_project/project

A set of utilities to work within a Gleam project. I TOOK MOST OF THIS FROM THE SQUIRREL REPO. TYSM!

Functions

pub fn create_files(
  input: Dict(String, String),
) -> Result(Nil, FileError)
pub fn find_schema_files() -> Result(Dict(String, String), Nil)
pub fn name() -> Result(String, Nil)

Returns the project’s name, read from the gleam.toml file.

pub fn src() -> String

Finds the path of the project’s src directory. This recursively walks up from the current directory until it finds a gleam.toml and builds it from there.

pub fn work() -> Result(Nil, Nil)
Search Document