Skip to content

Commit 71e6b5a

Browse files
authored
feat: rewrite entire CLI in go (#15)
BREAKING CHANGE: changed to gRPC API definitions
1 parent 053d033 commit 71e6b5a

File tree

93 files changed

+18386
-3290
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+18386
-3290
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Hardware/software**
27+
- OS: [e.g. MacOS 11.2.3]
28+
- Terminal type [i.e. Bash, or Zsh]
29+
- Stream Machine CLI version [e.g. 1.0.0]
30+
- Stream Machine flags (either from the config file, or environment variables).
31+
32+
**Additional context**
33+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/build.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
- name: Set up Go
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: 1.16
23+
- name: Run GoReleaser
24+
uses: goreleaser/goreleaser-action@v2
25+
with:
26+
distribution: goreleaser
27+
version: latest
28+
args: --skip-publish --rm-dist
29+
- name: Upload
30+
env:
31+
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
32+
run: |
33+
tag_name="${GITHUB_REF##*/}"
34+
hub release edit $(find dist -type f -name "*.tar.gz" -printf "-a %p ") -a "dist/checksums.txt" -m "" "$tag_name"
35+
- name: Upload Homebrew formula
36+
env:
37+
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
38+
APIS_USERNAME: ${{secrets.APIS_USERNAME}}
39+
APIS_EMAIL: ${{secrets.APIS_EMAIL}}
40+
run: |
41+
git config --global user.email "${APIS_EMAIL}"
42+
git config --global user.name "${APIS_USERNAME}"
43+
tag_name="${GITHUB_REF##*/}"
44+
cd dist
45+
git clone "https://git:${GITHUB_TOKEN}@github.com/streammachineio/homebrew-cli.git"
46+
cp -f strm.rb homebrew-cli
47+
cd homebrew-cli
48+
git add .
49+
git commit -m "Release brew formula for Stream Machine CLI ${tag_name}"
50+
git push
51+
git tag -a "${tag_name}" -m "Release brew formula for Stream Machine CLI ${tag_name}"
52+
git push --tags

.github/workflows/cli-release.yaml

Lines changed: 0 additions & 224 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 12
21+
- name: Install dependencies
22+
run: npm i --non-interactive --pure-lockfile
23+
- name: Release
24+
env:
25+
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
26+
GIT_AUTHOR_NAME: ${{secrets.APIS_USERNAME}}
27+
GIT_COMMITTER_NAME: ${{secrets.APIS_USERNAME}}
28+
GIT_AUTHOR_EMAIL: ${{secrets.APIS_EMAIL}}
29+
GIT_COMMITTER_EMAIL: ${{secrets.APIS_EMAIL}}
30+
run: npm run semantic-release -- --repository-url "$(git config --get remote.origin.url)"

.gitignore

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
.idea
2-
target
3-
dependency-reduced-pom.xml
4-
*.log
2+
node_modules
3+
strm
4+
strm2
5+
protos
6+
.env
7+
.env-dev
8+
.env-prod
9+
.default-login-token.json
10+
dist

0 commit comments

Comments
 (0)