Skip to content

Commit

Permalink
Switch to cobra for command line handler (#345)
Browse files Browse the repository at this point in the history
* Switch to cobra for command line handler

* Move cli helpers to cmd/tlcli

* Get version from git tags

* Update documentation and auto-generate markdown for cli

* Improve help text
  • Loading branch information
irees committed Jul 11, 2024
1 parent 1d813c9 commit a27164c
Show file tree
Hide file tree
Showing 58 changed files with 1,526 additions and 873 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
go-version: '^1.20'
- name: Build on Linux
working-directory: ${{ github.workspace }}/cmd/transitland
run: CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build
run: CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags "-X main.tag=$(git describe --tags --abbrev=0)"
- name: Store Linux binary
uses: actions/upload-artifact@v4
with:
Expand All @@ -61,7 +61,7 @@ jobs:
go-version: '^1.20'
- name: Build on macOS
working-directory: ${{ github.workspace }}/cmd/transitland
run: CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build
run: CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.tag=$(git describe --tags --abbrev=0)"
- name: Import Code-Signing Certificates
uses: Apple-Actions/import-codesign-certs@v2
with:
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
go-version: '^1.20'
- name: Build on macOS
working-directory: ${{ github.workspace }}/cmd/transitland
run: CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build
run: CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.tag=$(git describe --tags --abbrev=0)"
- name: Import Code-Signing Certificates
uses: Apple-Actions/import-codesign-certs@v2
with:
Expand Down
Loading

0 comments on commit a27164c

Please sign in to comment.