magicbell-cli 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.goreleaser.yaml +74 -0
- package/README.md +22 -0
- package/bin/README.md +1 -0
- package/package.json +25 -0
package/.goreleaser.yaml
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
|
|
3
|
+
# This is a release config to release magicbell-cli to homebrew.
|
|
4
|
+
# Releases are published to: https://github.com/magicbell/homebrew-tap/releases
|
|
5
|
+
# To create a new release, take the following steps
|
|
6
|
+
# - have `goreleaser` installed (brew install goreleaser)
|
|
7
|
+
# - have a clean git state
|
|
8
|
+
# - run: git tag v1.x.x (semver)
|
|
9
|
+
# - run: goreleaser release
|
|
10
|
+
project_name: magicbell-cli
|
|
11
|
+
|
|
12
|
+
before:
|
|
13
|
+
hooks:
|
|
14
|
+
- rm -rf dist
|
|
15
|
+
|
|
16
|
+
builds:
|
|
17
|
+
- main: ../go/app/cmds/cli
|
|
18
|
+
binary: magicbell
|
|
19
|
+
env:
|
|
20
|
+
- CGO_ENABLED=0
|
|
21
|
+
goos:
|
|
22
|
+
- linux
|
|
23
|
+
- windows
|
|
24
|
+
- darwin
|
|
25
|
+
|
|
26
|
+
dist: dist
|
|
27
|
+
archives:
|
|
28
|
+
- formats: [tar.gz]
|
|
29
|
+
# this name template makes the OS and Arch compatible with the results of `uname`.
|
|
30
|
+
name_template: >-
|
|
31
|
+
{{ .ProjectName }}_
|
|
32
|
+
{{- title .Os }}_
|
|
33
|
+
{{- if eq .Arch "amd64" }}x86_64
|
|
34
|
+
{{- else if eq .Arch "386" }}i386
|
|
35
|
+
{{- else }}{{ .Arch }}{{ end }}
|
|
36
|
+
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
|
37
|
+
# use zip for windows archives
|
|
38
|
+
format_overrides:
|
|
39
|
+
- goos: windows
|
|
40
|
+
formats: [zip]
|
|
41
|
+
# files:
|
|
42
|
+
# - src: ./app/cmds/cli/README.md
|
|
43
|
+
# dst: README.md
|
|
44
|
+
|
|
45
|
+
brews:
|
|
46
|
+
- repository:
|
|
47
|
+
owner: magicbell
|
|
48
|
+
name: homebrew-tap
|
|
49
|
+
token: '{{ .Env.GITHUB_TOKEN }}'
|
|
50
|
+
directory: Formula
|
|
51
|
+
homepage: https://www.magicbell.com
|
|
52
|
+
description: MagicBell CLI.
|
|
53
|
+
license: MIT
|
|
54
|
+
name: magicbell-cli
|
|
55
|
+
|
|
56
|
+
changelog:
|
|
57
|
+
disable: true
|
|
58
|
+
sort: asc
|
|
59
|
+
filters:
|
|
60
|
+
exclude:
|
|
61
|
+
- '^docs:'
|
|
62
|
+
- '^test:'
|
|
63
|
+
- '^chore:'
|
|
64
|
+
- '^ci:'
|
|
65
|
+
|
|
66
|
+
release:
|
|
67
|
+
github:
|
|
68
|
+
owner: magicbell
|
|
69
|
+
name: homebrew-tap
|
|
70
|
+
footer: >-
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
|
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# MagicBell CLI
|
|
2
|
+
|
|
3
|
+
## Install
|
|
4
|
+
|
|
5
|
+
```shell
|
|
6
|
+
brew install magicbell/tap/magicbell-cli
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Reinstall
|
|
10
|
+
|
|
11
|
+
If you've installed our CLI from the magicbell-io org, please uninstall it first:
|
|
12
|
+
|
|
13
|
+
```shell
|
|
14
|
+
brew uninstall magicbell-cli
|
|
15
|
+
brew untap magicbell-io/tap
|
|
16
|
+
brew untap magicbell/tap
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
** install **
|
|
20
|
+
```shell
|
|
21
|
+
brew install magicbell/tap/magicbell-cli
|
|
22
|
+
```
|
package/bin/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# MagicBell CLI
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "magicbell-cli",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "MagicBell CLI",
|
|
5
|
+
"private": false,
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"golang-npm": "^0.0.6"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"postinstall": "golang-npm install",
|
|
11
|
+
"preuninstall": "golang-npm uninstall",
|
|
12
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
|
+
},
|
|
14
|
+
"author": "MagicBell",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/orgs/magicbell/discussions"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://magicbell.com",
|
|
20
|
+
"goBinary": {
|
|
21
|
+
"name": "magicbell",
|
|
22
|
+
"path": "./bin",
|
|
23
|
+
"url": "https://github.com/magicbell/homebrew-tap/releases/download/v{{version}}/magicbell-cli_{{platform}}_{{arch}}.tar.gz"
|
|
24
|
+
}
|
|
25
|
+
}
|