def plan.set

cswap-bend-cli@0.1.0.0 · setcmd.bend:226

import cswap-bend-cli@0.1.0.0/setcmd.bend as Setcmd
import Base

226def plan.set(rest: List<String>) -> Plan:
227  match rest:
228    case Nil{}:
229      PBad{"the following arguments are required: KEY, VALUE"}
230    case Con{k, Nil{}}:
231      PBad{"the following arguments are required: VALUE"}
232    case Con{k, Con{v, t}}:
233      plan.none(t, PSet{k, v})

Uses (4)

Used by (1)