upgrade Info command (a bit) #6

Merged
irammini merged 2 commits from 0.3.4 into main 2026-02-17 09:48:44 +00:00
irammini commented 2026-02-16 11:53:37 +00:00 (Migrated from github.com)
No description provided.
irammini commented 2026-02-17 09:35:23 +00:00 (Migrated from github.com)

In this commit (also this update):

  • Introduce ServerContext interface and CaradeServerContext implementation to decouple InfoCommand from static server state.
  • Update InfoCommand to support section arguments (e.g., INFO memory, INFO server) and output CRLF line endings.
  • Add version field to Config allowing override via CARADE_VERSION env var.
  • Inject ServerContext into InfoCommand via CommandRegistry.
  • Add unit tests for InfoCommand using MockServerContext.
In this commit (also this update): - Introduce `ServerContext` interface and `CaradeServerContext` implementation to decouple `InfoCommand` from static server state. - Update `InfoCommand` to support section arguments (e.g., `INFO memory`, `INFO server`) and output CRLF line endings. - Add `version` field to `Config` allowing override via `CARADE_VERSION` env var. - Inject `ServerContext` into `InfoCommand` via `CommandRegistry`. - Add unit tests for `InfoCommand` using `MockServerContext`.
Sign in to join this conversation.
No description provided.