~/bend-docscommunity

fmt/yaml.bend checks

raw source on the hub · import cswap-bend-cli@0.1.0.0/fmt/yaml.bend as Yaml

4 imports
import Base
import ../json.bend as Json
import ./yamlw.bend as W
import ./yamlr.bend as R

Definitions

def emit source · line 10 · raw

@j:0x0717344745a30ebad1f19045228e8f18/json.Json -> String

def flowy source · line 13 · raw

@+s:String -> Bool

def parse.json source · line 18 · raw

@r:Result<&2, &2, String, 0x0717344745a30ebad1f19045228e8f18/json.Json> -> @+s:String -> Result<&2, &2, String, 0x0717344745a30ebad1f19045228e8f18/json.Json>

JSON is YAML: a document that opens with { or [ is read as JSON when it is JSON (nested flow collections, quoted keys), else by the block reader.

def parse.pick source · line 25 · raw

@flow:Bool -> @+s:String -> Result<&2, &2, String, 0x0717344745a30ebad1f19045228e8f18/json.Json>

def parse source · line 32 · raw

@+s:String -> Result<&2, &2, String, 0x0717344745a30ebad1f19045228e8f18/json.Json>