-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rewrite entire CLI in go (#15)
BREAKING CHANGE: changed to gRPC API definitions
- Loading branch information
Showing
93 changed files
with
18,386 additions
and
3,290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Hardware/software** | ||
- OS: [e.g. MacOS 11.2.3] | ||
- Terminal type [i.e. Bash, or Zsh] | ||
- Stream Machine CLI version [e.g. 1.0.0] | ||
- Stream Machine flags (either from the config file, or environment variables). | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Build | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: --skip-publish --rm-dist | ||
- name: Upload | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GH_TOKEN}} | ||
run: | | ||
tag_name="${GITHUB_REF##*/}" | ||
hub release edit $(find dist -type f -name "*.tar.gz" -printf "-a %p ") -a "dist/checksums.txt" -m "" "$tag_name" | ||
- name: Upload Homebrew formula | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GH_TOKEN}} | ||
APIS_USERNAME: ${{secrets.APIS_USERNAME}} | ||
APIS_EMAIL: ${{secrets.APIS_EMAIL}} | ||
run: | | ||
git config --global user.email "${APIS_EMAIL}" | ||
git config --global user.name "${APIS_USERNAME}" | ||
tag_name="${GITHUB_REF##*/}" | ||
cd dist | ||
git clone "https://git:${GITHUB_TOKEN}@github.com/streammachineio/homebrew-cli.git" | ||
cp -f strm.rb homebrew-cli | ||
cd homebrew-cli | ||
git add . | ||
git commit -m "Release brew formula for Stream Machine CLI ${tag_name}" | ||
git push | ||
git tag -a "${tag_name}" -m "Release brew formula for Stream Machine CLI ${tag_name}" | ||
git push --tags |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install dependencies | ||
run: npm i --non-interactive --pure-lockfile | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GH_TOKEN}} | ||
GIT_AUTHOR_NAME: ${{secrets.APIS_USERNAME}} | ||
GIT_COMMITTER_NAME: ${{secrets.APIS_USERNAME}} | ||
GIT_AUTHOR_EMAIL: ${{secrets.APIS_EMAIL}} | ||
GIT_COMMITTER_EMAIL: ${{secrets.APIS_EMAIL}} | ||
run: npm run semantic-release -- --repository-url "$(git config --get remote.origin.url)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
.idea | ||
target | ||
dependency-reduced-pom.xml | ||
*.log | ||
node_modules | ||
strm | ||
strm2 | ||
protos | ||
.env | ||
.env-dev | ||
.env-prod | ||
.default-login-token.json | ||
dist |
Oops, something went wrong.