From 7305cd86752442a597f81c527e1a7147e8bdc7a3 Mon Sep 17 00:00:00 2001 From: Case Taintor Date: Thu, 20 Jun 2024 20:28:31 +0200 Subject: [PATCH] fixes linting errors --- docs/Node-for-Formula-Authors.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/Node-for-Formula-Authors.md b/docs/Node-for-Formula-Authors.md index e0f70c12c8a99b..eb3e164d08ce23 100644 --- a/docs/Node-for-Formula-Authors.md +++ b/docs/Node-for-Formula-Authors.md @@ -105,13 +105,15 @@ class Foo < Formula # "link" the executable `foo`, ensuring that the version of node installed by Homebrew is used # (the created `foo` will set the ENV before exec'ing your executable) - env = { PATH: "#{HOMEBREW_PREFIX/"bin"}:$PATH" } + env = {PATH: "#{HOMEBREW_PREFIX/"bin"}:$PATH"} (bin/"foo").write_env_script "#{libexec}/bin/foo", env - # Uncomment if you simply want to symlink the executable – note that this means the first `node` on the PATH will be used + # Uncomment if you simply want to symlink the executable – note that this means the first + # `node` on the PATH will be used (not necessarily the one Homebrew installed) # bin.install_symlink Dir["#{libexec}/bin/*"] - # Uncomment if you want to write the completion scripts for bash, fish, and zsh (assuming your executable has a command "completion" which returns a completion script) + # Uncomment if you want to write the completion scripts for bash, fish, and zsh (assuming + # your executable has a command "completion" which returns a completion script) # generate_completions_from_executable(libexec/"bin/foo", "completion", base_name: 'foo') end