def problems

cli@0.2.0.0 · cli.bend:2348

import cli@0.2.0.0/cli.bend as Cli
import Base

2348def problems(c: Cmd) -> List<&2, Problem>:
2349  match c:
2350    case Cmd{+name, about, +items}:
2351      +linted = lint_items(items)
2352      List.concat(&2, Problem, [
2353        when_problem(Bool.not(valid_command_name(name)), BadName{name, name}),
2354        command_body_issues(name, name, about, items, has_pos_item(linted)),
2355        lint(linted, name, scope_ids(linted), Nil{}, global_entries(linted),
2356          False{}, False{}, has_version_item(items), True{}),
2357      ])

Uses (15)

Used by (3)