Skip to content

Commit

Permalink
fixes linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ctaintor committed Jun 20, 2024
1 parent 83f0c5c commit 021d5dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/Node-for-Formula-Authors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 鈥撀爊ote that this means the first `node` on the PATH will be used
# Uncomment if you simply want to symlink the executable 鈥撀爊ote 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

Expand Down

0 comments on commit 021d5dd

Please sign in to comment.