Skip to Main content

tuyen format

Format a file by pretty-printing its contents. Supports JSON and XML formats.

Usage

tuyen format [OPTIONS] --input <INPUT>

Options

-i, --input <INPUT>

  • Path to the file to format.
  • Required: Yes.
  • Alias: src.

-o, --output <OUTPUT>

  • Output path for the formatted file. If omitted, the input file is overwritten in-place.
  • Alias: 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.

-h, --help

  • Print help.