def plan.set
import cswap-bend-cli@0.1.0.0/setcmd.bend as Setcmdimport 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})