Skip to content

Commit

Permalink
fix: support versioned homebrew releases
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanSpeakEasy committed Jan 3, 2023
1 parent d5b22e7 commit 488785c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,12 @@ brews:
license: Apache-2.0
test: |
system "#{bin}/speakeasy --version"
- name: speakeasy@{{ .Major }}.{{ .Minor }}.{{ .Patch }}
tap:
owner: speakeasy-api
name: homebrew-tap
homepage: https://www.speakeasyapi.dev
description: The Speakeasy CLI for interacting with the Speakeasy Platform
license: Apache-2.0
test: |
system "#{bin}/speakeasy --version"
10 changes: 5 additions & 5 deletions cmd/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import (

var validateCmd = &cobra.Command{
Use: "validate",
Short: "Validate OpenAPI schemas + more (coming soon)",
Long: `The "validate" command provides a set of commands for validating OpenAPI specs and more (coming soon).`,
Short: "Validate OpenAPI documents + more (coming soon)",
Long: `The "validate" command provides a set of commands for validating OpenAPI docs and more (coming soon).`,
RunE: validateExec,
}

var validateOpenAPICmd = &cobra.Command{
Use: "openapi",
Short: "Validate an OpenAPI schema",
Long: `Validates an OpenAPI schema is valid and conforms to the Speakeasy OpenAPI specification.`,
Short: "Validate an OpenAPI document",
Long: `Validates an OpenAPI document is valid and conforms to the Speakeasy OpenAPI specification.`,
}

func validateInit() {
Expand All @@ -25,7 +25,7 @@ func validateInit() {

//nolint:errcheck
func validateOpenInit() {
validateOpenAPICmd.Flags().StringP("schema", "s", "", "path to the openapi schema")
validateOpenAPICmd.Flags().StringP("schema", "s", "", "path to the OpenAPI document")
validateOpenAPICmd.MarkFlagRequired("schema")

validateOpenAPICmd.RunE = validateOpenAPI
Expand Down

0 comments on commit 488785c

Please sign in to comment.