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