diff options
Diffstat (limited to 'cmd.ha')
| -rw-r--r-- | cmd.ha | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -90,6 +90,14 @@ fn write(cfg: config, tasks: []task, a: arguments) (void | task | error) = { fn show(cfg: config, tasks: []task, a: arguments) (void | task | error) = { const args = a.args; + // if no args, print all + if (len(args) == 0) { + for (const t .. tasks) { + fmt::println(t.content)!; + }; + return; + }; + for (const arg .. args) { const id = strconv::stoz(arg)?; const t = if (len(tasks) > id) { |
