Juniper / libxo

The libxo library allows an application to generate text, XML, JSON, and HTML output using a common set of function calls. The application decides at run time which output style should be produced.
http://juniper.github.io/libxo/libxo-manual.html
BSD 2-Clause "Simplified" License
321 stars 48 forks source link

Document "xo"'s --not-first option #59

Closed philshafer closed 5 years ago

philshafer commented 6 years ago

See https://lists.freebsd.org/pipermail/freebsd-hackers/2018-September/053304.html

>"bhyve": {
>  "machines": {
>    "machine": {
>      "name": "test1",
>      "memory": "2GB"
>    }    "machine": {
>      "name": "test2",
>      "memory": "4GB"
>    }
>  }
>}

There's an "xo" option called "--not-first" for exactly these situations; place that option on the second invocation so it will know to emit the leading comma. This should be documented (#59).

philshafer commented 5 years ago

Added in 02caa91..638d6ba