feat(forc-fmt): enhance forc-fmt
--path
behaviour flexibility
#4152
Labels
Milestone
forc-fmt
--path
behaviour flexibility
#4152
In this PR I discovered that there was some bug introduced with a previous PR i made refactoring
forc-fmt
. We should enhance the flexibility of forc-fmt to allow different behavior based on the--path
input:Currently
forc-fmt
only works on point 2. A PR should be opened to address 3 and 4.As for 1, Further conversations with @mitchmindtree has also led to some insights regarding the desired behaviour of
forc-fmt
, which was emulated aftercargo fmt
:cargo fmt
is meant to work on workspaces/manifests andrustfmt
is more primitive in the sense that it accepts only a file/list of files to format. In our case, we do not distributeswayfmt
+forc-fmt
. A previous PR i made introduced single file formatting fileforc fmt <PATH_TO_FILE>
. This is to emulaterustfmt
.I was thinking if we should keep this behavior, but I think for consistency's sake, we should also include
--path
for single file formatting.The text was updated successfully, but these errors were encountered: