Skip to Main content

tuyen format

Format a file (pretty-print). Supports JSON and XML formats

Usage

tuyen format [OPTIONS] --input <INPUT>

Options

-i, --input <INPUT>

Path to the file to format
Aliases: src

-o, --output <OUTPUT>

Output path. If omitted, the input file is overwritten in-place
Aliases: dest

--json

Treat the input as a JSON file and pretty-print it
Possible values: true, false

--xml

Treat the input as an XML file and pretty-print it
Possible values: true, false

--xml-variant <XML_VARIANT>

XML version to use in the output declaration (e.g. 1 for XML 1.0)

-h, --help

Print help.