Add example extension command with input handler #77

Open
opened 2026-03-14 23:57:28 +00:00 by freemo · 0 comments
Owner

Metadata

  • Commit Message: feat(extensions): add example extension command demonstrating the extension command pattern
  • Branch: feature/m3-v11-example-extension-command

Background

extensions/actions/commands/ and extensions/input_handlers/ contain only .keep files. No working example demonstrates how to create extension commands.

Expected Behavior

A working example extension command (e.g., craft) with input handler, action, and help file, demonstrating the full extension command lifecycle.

Acceptance Criteria

  • Extension command action in extensions/actions/commands/
  • Corresponding input handler in extensions/input_handlers/
  • Handler self-registers via HandlerRegistry.register_handler
  • Command is functional in-game when extensions are loaded

Subtasks

  • Create example command action class
  • Create corresponding input handler
  • Tests: Unit tests for the command
  • Run bundle exec rake unit, fix any errors

Definition of Done

This issue is complete when all subtasks are done, commit created on the specified branch, PR submitted and merged.

## Metadata - **Commit Message**: `feat(extensions): add example extension command demonstrating the extension command pattern` - **Branch**: `feature/m3-v11-example-extension-command` ## Background `extensions/actions/commands/` and `extensions/input_handlers/` contain only `.keep` files. No working example demonstrates how to create extension commands. ## Expected Behavior A working example extension command (e.g., `craft`) with input handler, action, and help file, demonstrating the full extension command lifecycle. ## Acceptance Criteria - [ ] Extension command action in `extensions/actions/commands/` - [ ] Corresponding input handler in `extensions/input_handlers/` - [ ] Handler self-registers via `HandlerRegistry.register_handler` - [ ] Command is functional in-game when extensions are loaded ## Subtasks - [ ] Create example command action class - [ ] Create corresponding input handler - [ ] Tests: Unit tests for the command - [ ] Run `bundle exec rake unit`, fix any errors ## Definition of Done This issue is complete when all subtasks are done, commit created on the specified branch, PR submitted and merged.
freemo added this to the v1.1.0 milestone 2026-03-14 23:57:28 +00:00
freemo self-assigned this 2026-03-15 04:25:23 +00:00
freemo modified the milestone from v1.1.0 to v1.2.0 2026-03-16 00:28:15 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: aethyr/Aethyr#77
No description provided.