Skip to content

refactor: restructure CLI to support subcommands#13

Merged
wasaga merged 1 commit into
mainfrom
refactor/cli-subcommands
Jan 21, 2026
Merged

refactor: restructure CLI to support subcommands#13
wasaga merged 1 commit into
mainfrom
refactor/cli-subcommands

Conversation

@wasaga

@wasaga wasaga commented Jan 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move server logic under a serve subcommand to enable adding more commands with different parameters
  • Use ADDR env var for configuration following 12-factor app principles
  • Update Dockerfile to build from ./cmd/ directory

Test plan

  • Run go build ./cmd/ to verify compilation
  • Test ./server serve starts on default port :8080
  • Test ADDR=:3000 ./server serve uses custom port
  • Test ./server help shows usage
  • Verify Docker build works

Move server logic under a "serve" subcommand to allow adding more
commands with different parameters in the future. Configuration
now uses ADDR env var following 12-factor app principles.
@wasaga wasaga requested a review from a team as a code owner January 21, 2026 22:15
@wasaga wasaga requested a review from kralicky January 21, 2026 22:15
@wasaga wasaga merged commit fd69f2e into main Jan 21, 2026
3 checks passed
@wasaga wasaga deleted the refactor/cli-subcommands branch January 21, 2026 22:40
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