Skip to content

Conversation

@carlosdp
Copy link
Contributor

This just adds a little more detail to the --file flag to let devs know they can pass "-" as the file path to the fmt command and pass the file in via stdin (functionality added in #1529)

Automatically format RSX

Usage: dx fmt [OPTIONS]

Options:
      --all-code               Format rust code before the formatting the rsx macros
  -c, --check                  Run in 'check' mode. Exits with 0 if input is formatted correctly. Exits with 1 and prints a diff if formatting is required
  -r, --raw <RAW>              Input rsx (selection)
  -f, --file <FILE>            Input file at path (set to "-" to read file from stdin, and output formatted file to stdout)
  -s, --split-line-attributes  Split attributes in lines or not
  -p, --package <PACKAGE>      The package to build
      --verbose                Use verbose output [default: false]
      --trace                  Use trace output [default: false]
      --json-output            Output logs in JSON format
  -h, --help                   Print help

@carlosdp carlosdp requested a review from a team as a code owner March 31, 2025 15:04
@jkelleyrtp jkelleyrtp merged commit 1a3df9d into DioxusLabs:main Apr 15, 2025
16 of 17 checks passed
AnteDeliria pushed a commit to AnteDeliria/dioxus that referenced this pull request Jun 2, 2025
AnteDeliria pushed a commit to AnteDeliria/dioxus that referenced this pull request Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants