Icon Linkforc-fmt

Forc plugin for running the Sway code formatter.

Icon LinkUSAGE:

forc-fmt [OPTIONS] [FILE]

Icon LinkARGS:

<FILE> Formats a single .sw file with the default settings. If not specified, current working directory will be formatted using a Forc.toml configuration

Icon LinkOPTIONS:

-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.

-h, --help

Print help information

-p, --path <PATH>

Path to the project, if not specified, current working directory will be used

-V, --version

Print version information

Was this page helpful?

Icon ListDetailsOn this page