sorawee / fmt

A code formatter for Racket
Other
72 stars 6 forks source link

Documentation: Possible example of how to run on commandline #18

Closed joshpetit closed 2 years ago

joshpetit commented 2 years ago

Hey there! I noticed that you made this formatter for racket, right in time also since I'm taking a class that's using swindle.

I was wondering if you guys could write an example of how to use the formatter through the cli. I'd appreciate it! Thanks a lot for making this.

sorawee commented 2 years ago

Hi! The doc at https://docs.racket-lang.org/fmt/ already mentions the command raco fmt and an example (raco fmt --width 40 file.rkt). Let me know if this is still unclear to you and if you have any idea how to improve it.

sorawee commented 2 years ago

I elaborated the docs a bit. Does this look better to you? (the docs website won't immediately be updated, you need to view https://github.com/sorawee/fmt/blob/master/scribblings/fmt.scrbl for now)

joshpetit commented 2 years ago

Oh I'm sorry I didn't even notice it in the docs 😅. It's very clear thank you very much!