Forc plugin for running the Sway code formatter.
forc-fmt [OPTIONS]
-c
, --check
Run in 'check' mode.
0
if input is formatted correctly. - Exits with 1
and prints a diff if formatting is required. -f
, --file
<FILE>
Formats a single .sw file with the default settings. If not specified, current working directory will be formatted using a Forc.toml configuration
-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
[33mEXAMPLES:[0m
forc fmt --check
forc fmt -c
forc fmt --file {path}/src/main.sw
forc fmt -f {path}/src/main.sw
forc fmt --path {path}
forc fmt -p {path}