From 9a916b7934af3b697c1dd2637e8313b9df564c19 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 22 May 2024 07:34:25 -0700 Subject: [PATCH] feat: add homebrew installation note (#468) Summary: closes https://github.com/facebook/ktfmt/issues/312 relates to https://github.com/Homebrew/homebrew-core/pull/162375 Pull Request resolved: https://github.com/facebook/ktfmt/pull/468 Differential Revision: D57621792 Pulled By: hick209 fbshipit-source-id: a62db1c685fc318e14708d86b21c0b667033337a --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 48c13f07..264f2de9 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,16 @@ Not all of ktfmt's rules can be represented as IntelliJ editor settings, so you need to run ktfmt. Alternately, that file can be used as a reference to manually change the project's code style settings. +### Installation + +#### Homebrew + +If you're a [Homebrew](https://brew.sh) user, you can install [ktfmt](https://formulae.brew.sh/formula/ktfmt) via: + +``` +$ brew install ktfmt +``` + ### from the command-line [Download the formatter](https://github.com/facebook/ktfmt/releases)