Skip to content

fix: Go tools — Add --version flag to all 7 binaries #38

@Delqhi

Description

@Delqhi

Description

All 7 Go tools (discover, execute, map, grasp, scout, harvest, orchestrate) lack a --version flag. They print full usage on -version.

Current Behavior

$ discover --version
Usage: discover [flags]...
# Prints help instead of version

$ execute --version
Usage: execute [flags]...

Required Fix

Add --version flag to each tool's Cobra/flag setup that prints:

$ discover --version
discover v1.0.1-codocs (commit abc1234)

$ execute --version
execute v1.0.0-initial (commit def5678)

Implementation

In each tool's main.go:

  1. Add version variable (set via -ldflags at build time)
  2. Add --version flag that prints version and exits
  3. Update CI build to inject version: go build -ldflags "-X main.version=v1.2.0-3-g4c5a78d" ...

Affected Repos

  • SIN-Code-Discover-Tool
  • SIN-Code-Execute-Tool
  • SIN-Code-Map-Tool
  • SIN-Code-Grasp-Tool
  • SIN-Code-Scout-Tool
  • SIN-Code-Harvest-Tool
  • SIN-Code-Orchestrate-Tool

Acceptance Criteria

  • All 7 tools respond to --version with semantic version + git commit
  • sin update --check can detect version differences
  • Version matches git tag

Priority

MEDIUM — Required for sin update to work properly; also basic CLI professionalism

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions