def Yaml.plain

bend-kube-runtime@0.2.0.0 · src/yaml.bend:410

import bend-kube-runtime@0.2.0.0/src/yaml.bend as Yaml
import Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J

410# A plain scalar: null, ~, true, false, or a string.
411def Yaml.plain(s: String) -> J.Json:
412  match s:
413    case "null":
414      J.JNull{}
415    case "~":
416      J.JNull{}
417    case "true":
418      J.JBool{True{}}
419    case "false":
420      J.JBool{False{}}
421    case +x:
422      Yaml.plain.num(x, Num.parse(x))

Uses (9)

Used by (3)