Skip to content

Commit

Permalink
fix homebrew formula, reference in README
Browse files Browse the repository at this point in the history
  • Loading branch information
benweint committed May 24, 2024
1 parent c45924c commit cdb145d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 5 additions & 1 deletion HomebrewFormula/gquil.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ class Gquil < Formula
end

def install
bin.install "gquil"
if OS.mac?
bin.install "gquil_darwin_amd64" => "gquil"
elsif OS.linux?
bin.install "gquil_linux_amd64" => "gquil"
end
end
end
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ It can output information about large GraphQL schemas in several forms:
- GraphViz's [DOT language](https://graphviz.org/doc/info/lang.html) for visualization purposes (suitable for use with `dot`)
- GraphQL SDL (suitable for feeding back into `gquil` itself, or using with other GraphQL-related tools)

## Installation

Pre-built binaries for macOS and Linux are published to [GitHub releases](https://github.com/benweint/gquil/releases).

You can also install via Homebrew, using the formula hosted in this repo:

```
brew tap benweint/gquil https://github.com/benweint/gquil
brew install gquil
```

## Capabilities

### Visualizing schemas
Expand Down

0 comments on commit cdb145d

Please sign in to comment.