dev_tools/internals/project
Types
pub type Config {
Config(name: String, version: String, toml: Dict(String, Toml))
}
Constructors
-
Config(name: String, version: String, toml: Dict(String, Toml))
pub type Function {
Function(parameters: List(Type), return: Type)
}
Constructors
-
Function(parameters: List(Type), return: Type)
pub type Interface {
Interface(
name: String,
version: String,
modules: Dict(String, Module),
)
}
Constructors
-
Interface( name: String, version: String, modules: Dict(String, Module), )
Functions
pub fn build() -> Result(Nil, Error)
Compile the current project running the gleam build
command.
pub fn config() -> Result(Config, Error)
Read the project configuration in the gleam.toml
file.
pub fn otp_version() -> Int
pub fn root() -> String
Finds the path leading to the project’s root folder. This recursively walks
up from the current directory until it finds a gleam.toml
.
pub fn type_to_string(type_: Type) -> String