Skip to content

feat: add version command to devnetd with --long flag#23

Merged
qj0r9j0vc2 merged 3 commits into
mainfrom
feat/version-cmd-devnetd
Jan 26, 2026
Merged

feat: add version command to devnetd with --long flag#23
qj0r9j0vc2 merged 3 commits into
mainfrom
feat/version-cmd-devnetd

Conversation

@qj0r9j0vc2

Copy link
Copy Markdown
Member

Summary

  • Add shared version package (internal/version) for consistent version output
  • Add version command to devnetd daemon
  • Update dvb version command with --long flag support
  • Update devnet-builder version command with --long flag support

Changes

  • New internal/version package: Provides reusable version info with YAML/JSON output
  • --long flag: Shows build dependencies like Cosmos SDK apps
  • --json flag: Machine-readable JSON output
  • Build config: Updated Makefile and .goreleaser.yaml with version ldflags for all binaries

Example Output

devnet-builder version v1.0.0-rc0
  commit:     abc123...
  build date: 2026-01-26T07:31:51Z
  go:         go version go1.24.2 darwin/arm64

With --long:

name: devnet-builder
server_name: devnetd
version: v1.0.0-rc0
commit: abc123...
build_deps:
    - github.com/docker/docker@v28.5.1+incompatible
    - github.com/spf13/cobra@v1.10.2
    ...

Test plan

  • make install builds all binaries with version injection
  • dvb version shows version info
  • devnetd version shows version info
  • devnet-builder version shows version info
  • --long flag shows build dependencies
  • --json flag outputs JSON format

@qj0r9j0vc2 qj0r9j0vc2 self-assigned this Jan 26, 2026
@qj0r9j0vc2 qj0r9j0vc2 merged commit d85a3fa into main Jan 26, 2026
12 checks passed
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.

1 participant