Skip to content

Commit

Permalink
Add the JSON Schema CLI
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Jun 3, 2024
1 parent 535c2f2 commit 803ff53
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:

- run: brew test-bot --only-tap-syntax

- run: brew test-bot --only-formulae
if: github.event_name == 'pull_request'

- name: Upload bottles as artifact
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
Expand Down
14 changes: 14 additions & 0 deletions Casks/jsonschema.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cask "jsonschema" do
version "0.1.0"
sha256 "f87daa4440958d1bd2823f6713d14f345892533756adc2957c92de0d833ebdc3"
url "https://github.com/Intelligence-AI/jsonschema/releases/download/v#{version}/jsonschema-#{version}-darwin-arm64.zip"
name "JSON Schema CLI"
desc "The CLI for working with JSON Schema"
homepage "https://github.com/Intelligence-AI/jsonschema"
binary "jsonschema-#{version}-darwin-arm64/bin/jsonschema"
postflight do
system_command "xattr", args: ["-c", "#{staged_path}/jsonschema-#{version}-darwin-arm64/bin/jsonschema"]
# As a test
system_command "#{staged_path}/jsonschema-#{version}-darwin-arm64/bin/jsonschema"
end
end

0 comments on commit 803ff53

Please sign in to comment.