This repository has been archived on 2024-05-03. You can view files and clone it, but cannot push or open issues or pull requests.
treefmt/docs/quick-start.md
Brian McGee 73722737f6
doc: port existing content
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-05-02 11:41:36 +01:00

574 B

Quick start

To run treefmt in your project, please follow these steps:

  1. Install the tool.
  2. Install the needed formatters.
  3. Run treefmt --init. This will generate the basic configuration file treefmt.toml containing the formatting rules.
  4. Edit the configuration (see here how).
  5. Run treefmt with the needed flags and options. You can check the supported options by executing treefmt --help.

In the following sections we will guide you through installing and configuring treefmt in detail.