def parse.verb

cswap-bend-cli@0.1.0.0 · args.bend:434

import cswap-bend-cli@0.1.0.0/args.bend as Args
import Base

434def parse.verb(+vb: String, +rest: List<&2, String>) -> Parsed:
435  sel.p(String.eq(vb, "tui") || String.eq(vb, "watch"), PTui{rest}, sel.p(String.eq(vb, "auto"), PAuto{rest}, sel.p(String.eq(vb, "config"), PConfig{config_args(rest), has_str("--json", rest)}, sel.p(String.eq(vb, "profile"), PProfile{config_args(rest), has_str("--json", rest)}, sel.p(has_str(vb, ["help", "version", "list", "status", "add", "add-token", "remove", "import-usage", "switch"]), parse.scan(vb, scan(rest)), PDeferred{vb})))))

Uses (10)

Used by (1)