Skip to content

Commit 946b341

Browse files
committed
Change binary to rh because of rq name conflict
1 parent 7763362 commit 946b341

File tree

4 files changed

+15
-113
lines changed

4 files changed

+15
-113
lines changed

.goreleaser.yml

Lines changed: 4 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ builds:
1313
- linux
1414
- windows
1515
- darwin
16-
binary: rq
16+
binary: rh
1717
archives:
1818
- replacements:
1919
darwin: Darwin
@@ -33,120 +33,22 @@ changelog:
3333
- '^test:'
3434
brews:
3535
-
36-
# Name template of the recipe
37-
# Default to project name
38-
# name: myproject
39-
40-
# IDs of the archives to use.
41-
# Defaults to all.
42-
# ids:
43-
# - foo
44-
# - bar
45-
46-
# GOARM to specify which 32-bit arm version to use if there are multiple versions
47-
# from the build section. Brew formulas support atm only one 32-bit version.
48-
# Default is 6 for all artifacts or each id if there a multiple versions.
4936
goarm: 6
50-
51-
# NOTE: make sure the url_template, the token and given repo (github or gitlab) owner and name are from the
52-
# same kind. We will probably unify this in the next major version like it is done with scoop.
53-
54-
# GitHub/GitLab repository to push the formula to
55-
# Gitea is not supported yet, but the support coming
5637
tap:
5738
owner: aaronvb
58-
name: homebrew-rq
59-
# Optionally a token can be provided, if it differs from the token provided to GoReleaser
60-
# token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
61-
62-
# Template for the url which is determined by the given Token (github or gitlab)
63-
# Default for github is "https://github.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
64-
# Default for gitlab is "https://gitlab.com/<repo_owner>/<repo_name>/-/releases/{{ .Tag }}/downloads/{{ .ArtifactName }}"
65-
# Default for gitea is "https://gitea.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
39+
name: homebrew-request_hole
6640
url_template: "https://github.com/aaronvb/request_hole/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
67-
68-
# Allows you to set a custom download strategy. Note that you'll need
69-
# to implement the strategy and add it to your tap repository.
70-
# Example: https://docs.brew.sh/Formula-Cookbook#specifying-the-download-strategy-explicitly
71-
# Default is empty.
72-
# download_strategy: CurlDownloadStrategy.
73-
74-
# Allows you to add a custom require_relative at the top of the formula template
75-
# Default is empty
76-
# custom_require: custom_download_strategy
77-
78-
# Git author used to commit to the repository.
79-
# Defaults are shown.
8041
commit_author:
8142
name: Aaron Van Bokhoven
8243
83-
84-
# Folder inside the repository to put the formula.
85-
# Default is the root folder.
8644
folder: Formula
87-
88-
# Caveats for the user of your binary.
89-
# Default is empty.
90-
# caveats: "How to use this binary"
91-
92-
# Your app's homepage.
93-
# Default is empty.
9445
homepage: "https://github.com/aaronvb/request_hole"
95-
96-
# Your app's description.
97-
# Default is empty.
9846
description: "Request Hole is a command line tool for creating a temporary endpoint."
99-
100-
# SPDX identifier of your app's license.
101-
# Default is empty.
10247
license: "MIT"
103-
104-
# Setting this will prevent goreleaser to actually try to commit the updated
105-
# formula - instead, the formula file will be stored on the dist folder only,
106-
# leaving the responsibility of publishing it to the user.
107-
# If set to auto, the release will not be uploaded to the homebrew tap
108-
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
109-
# Default is false.
110-
# skip_upload: true
111-
112-
# Custom block for brew.
113-
# Can be used to specify alternate downloads for devel or head releases.
114-
# Default is empty.
115-
# custom_block: |
116-
# head "https://github.com/some/package.git"
117-
# ...
118-
119-
# Packages your package depends on.
12048
dependencies:
12149
- name: go
12250
type: optional
123-
124-
# Packages that conflict with your package.
125-
# conflicts:
126-
# - svn
127-
# - bash
128-
129-
# Specify for packages that run as a service.
130-
# Default is empty.
131-
# plist: |
132-
# <?xml version="1.0" encoding="UTF-8"?>
133-
# ...
134-
135-
# So you can `brew test` your formula.
136-
# Default is empty.
13751
test: |
138-
system "#{bin}/rq version"
139-
...
140-
141-
# Custom install script for brew.
142-
# Default is 'bin.install "program"'.
52+
system "#{bin}/rh version"
14353
install: |
144-
bin.install "program"
145-
...
146-
147-
# Custom post_install script for brew.
148-
# Could be used to do any additional work after the "install" script
149-
# Default is empty.
150-
# post_install: |
151-
# etc.install "app-config.conf"
152-
# ...
54+
bin.install "rh"

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
# Request Hole CLI
2-
[![go.dev Reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/aaronvb/request_hole)
2+
[![go.dev Reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/aaronvb/request_hole)
33
[![Test](https://github.com/aaronvb/request_hole/workflows/Test/badge.svg)](https://github.com/aaronvb/request_hole/actions/workflows/tests.yml)
44
[![Builds](https://github.com/aaronvb/request_hole/workflows/Builds/badge.svg)](https://github.com/aaronvb/request_hole/actions/workflows/builds.yml)
55

6-
`rq` is a CLI tool for creating an ephemeral endpoint for testing and inspecting requests from your application or webhook.
6+
`rh` is a CLI tool for creating an ephemeral endpoint for testing and inspecting requests from your application or webhook.
77

8-
<img width="741" alt="rq" src="https://user-images.githubusercontent.com/100900/120058797-f9d90780-bfe8-11eb-9b1d-f65a27773600.png">
8+
<img width="741" alt="rh" src="https://user-images.githubusercontent.com/100900/120058797-f9d90780-bfe8-11eb-9b1d-f65a27773600.png">
99

1010
## Installation
1111
### Clone repo and build
1212
First make sure you have Go installed: https://golang.org/doc/install
1313
```
1414
git clone [email protected]:aaronvb/request_hole.git
1515
cd request_hole
16-
go build -o $GOBIN/rq
16+
go build -o $GOBIN/rh
1717
```
1818
### Release versions
1919
Download the release version for your system: https://github.com/aaronvb/request_hole/releases
2020

2121
## Usage
2222
```
23-
rq: Request Hole
23+
rh: Request Hole
2424
This CLI tool will let you create a temporary API endpoint for testing purposes.
2525
2626
Usage:
27-
rq [command]
27+
rh [command]
2828
2929
Available Commands:
3030
help Help about any command
@@ -33,11 +33,11 @@ Available Commands:
3333
3434
Flags:
3535
-a, --address string sets the address for the endpoint (default "localhost")
36-
-h, --help help for rq
36+
-h, --help help for rh
3737
-p, --port int sets the port for the endpoint (default 8080)
3838
-r, --response_code int sets the response code (default 200)
3939
40-
Use "rq [command] --help" for more information about a command.
40+
Use "rh [command] --help" for more information about a command.
4141
```
4242

4343

cmd/protocol.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
var getCmd = &cobra.Command{
1010
Use: "http",
1111
Short: "Creates an http endpoint",
12-
Long: `rq: http
12+
Long: `rh: http
1313
Create an endpoint that accepts http connections.
1414
`,
1515
Run: http,

cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ var (
1111
)
1212

1313
var rootCmd = &cobra.Command{
14-
Use: "rq",
14+
Use: "rh",
1515
Short: "A CLI for an ephemeral API endpoint",
16-
Long: `rq: Request Hole
16+
Long: `rh: Request Hole
1717
This CLI tool will let you create a temporary API endpoint for testing purposes.`,
1818
}
1919

0 commit comments

Comments
 (0)