def plan.set

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

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

297def plan.set(rest: List<String>) -> Plan:
298  match rest:
299    case Nil{}:
300      PBad{"the following arguments are required: NAME, KEY, VALUE"}
301    case Con{n, Nil{}}:
302      PBad{"the following arguments are required: KEY, VALUE"}
303    case Con{n, Con{k, Nil{}}}:
304      PBad{"the following arguments are required: VALUE"}
305    case Con{n, Con{k, Con{v, t}}}:
306      plan.none(t, PSet{n, k, v})

Uses (4)

Used by (1)