glint
Types
pub type CommandInput {
CommandInput(args: List(String), flags: FlagMap)
}
Constructors
-
CommandInput(args: List(String), flags: FlagMap)
pub type Contents(a) {
Contents(do: Runner(a), flags: FlagMap, desc: Description)
}
Constructors
-
Contents(do: Runner(a), flags: FlagMap, desc: Description)
pub type Description {
Description(description: String, usage: String)
}
Constructors
-
Description(description: String, usage: String)
Functions
pub fn add_command(to root: Command(a), at path: List(String), do f: fn(
CommandInput,
) -> a, with flags: List(#(String, Contents)), described description: String, used usage: String) -> Command(
a,
)