refactor: gleamify :)
This commit is contained in:
@@ -31,7 +31,8 @@ fn history(_cmds: List(Command)) -> Nil {
|
|||||||
|
|
||||||
fn help(cmds: List(Command)) -> Nil {
|
fn help(cmds: List(Command)) -> Nil {
|
||||||
io.println("Available commands:")
|
io.println("Available commands:")
|
||||||
list.each(cmds, fn(cmd) {
|
cmds
|
||||||
|
|> list.each(fn(cmd) {
|
||||||
io.println(" " <> cmd.name <> " - " <> cmd.description)
|
io.println(" " <> cmd.name <> " - " <> cmd.description)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user