def plan.verb

cswap-bend-cli@0.1.0.0 · profcmd.bend:308

import cswap-bend-cli@0.1.0.0/profcmd.bend as Profcmd
import Base

308def plan.verb(+l: Bool, +sh: Bool, +u: Bool, +st: Bool, +dl: Bool, +a: String, rest: List<String>) -> Plan:
309  match l sh u st dl:
310    case True{} _ _ _ _:
311      plan.none(rest, PList{})
312    case False{} True{} _ _ _:
313      plan.show(rest)
314    case False{} False{} True{} _ _:
315      plan.use(rest)
316    case False{} False{} False{} True{} _:
317      plan.set(rest)
318    case False{} False{} False{} False{} True{}:
319      plan.gone(rest)
320    case _ _ _ _ _:
321      PBad{"argument action: invalid choice: '" ++ a ++ "' (choose from 'list', 'show', 'use', 'set', 'remove')"}

Uses (10)

Used by (1)