Cli.outcome_parse: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 7673-7687 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=7673&end_line=7687 import Base def outcome_parse(result: ParseResult, +c: Cmd, h: Host, +argv: List<&2, String>) -> Outcome: match result: case Accepted{+path, fields, external}: outcome_accepted(builtin_name(sub_at(path, cmd_items(c), None{})), c, path, fields, external) case HelpRequested{path, long}: Shown{0, help_out(term(c, h, argv), view_of(c, path), long), ""} case VersionRequested{}: Shown{0, String.concat([cmd_name(c), " ", find_version(cmd_items(c)), "\n"]), ""} case SummaryRequired{}: Shown{2, "", summary_err(term(c, h, argv), view_of(c, []))} case Rejected{path, fault}: Shown{2, "", fault_err(term(c, h, argv), fault, c, path, argv)} Uses (19): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.concat https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Cmd https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Host https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Outcome https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=ParseResult https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=builtin_name https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=cmd_items https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=cmd_name https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=fault_err https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=find_version https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=help_out https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=outcome_accepted https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=sub_at https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=summary_err https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=term https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=view_of