Skip to content

Conversation

@pmarsceill
Copy link
Owner

Summary

  • Add --version flag to CLI with build-time version injection via -ldflags
  • Add GitHub Actions release workflow triggered on version tags (v*)
  • Build cross-platform binaries for linux/darwin on amd64/arm64
  • Create install.sh script for curl-pipe-bash installation
  • Add tests for version flag and install script validation

Changes

File Description
internal/cli/root.go Add Version variable and set on root command
.github/workflows/release.yml New release workflow for building and publishing binaries
install.sh Installation script for end users
internal/cli/root_test.go Tests for version flag functionality
install_test.go Tests for install script validation

Usage

Create a release:

git tag v0.1.0
git push origin v0.1.0

Install via script:

curl -fsSL https://raw.githubusercontent.com/pmarsceill/mapcli/main/install.sh | bash

Test plan

  • All existing tests pass
  • New version tests pass (go test -v ./internal/cli -run "Test.*Version")
  • Install script tests pass (go test -v ./... -run "TestInstallScript")
  • Linter passes with 0 issues
  • map --version outputs correct version when built with ldflags
  • Create test tag to verify release workflow
  • Test install script on macOS after first release

🤖 Generated with Claude Code

pmarsceill and others added 3 commits January 21, 2026 15:45
- Add --version flag to CLI with build-time version injection via ldflags
- Add GitHub Actions release workflow triggered on version tags (v*)
- Build cross-platform binaries for linux/darwin on amd64/arm64
- Create install.sh script for curl-pipe-bash installation
- Add tests for version flag and install script validation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@pmarsceill pmarsceill merged commit 44f1809 into main Jan 21, 2026
5 checks passed
@pmarsceill pmarsceill deleted the feat/automated-binary-distribution branch January 21, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants