Skip to content

Adds command printing and command events - #16

Merged
nickesc merged 23 commits into
mainfrom
dev
Aug 15, 2026
Merged

Adds command printing and command events#16
nickesc merged 23 commits into
mainfrom
dev

Conversation

@nickesc

@nickesc nickesc commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Adds an option to print the displayed prompt + raw input to the output when a command executes and to emit an event for that printed command.

  • adds an option (printCommand) to emit a command entry to the output adapter
  • adds a "command" event that carries the printed string and its output metadata
  • extends the output adapter contract to include a command handler
    • built-in adapters were updated to implement it

Also preserves user input when cycling through command history.

nickesc added 23 commits August 15, 2026 18:28
* print-input:
  document command printing in output adapters
  document new command print behavior
  document new command event
  document new print command option
  test svelte command output
  test dom command output
  test new command output
  test listener for new event
  test for new event type
  test for new option
  update svelte adapter to implement the command method
  update dom adapter to implement the command method
  add plumbing to emit command events
  add command output type to output adapter contract
  add option to print input value to output
* preserve-user-input:
  fix clearing after second down press
  test input restore
  save a history draft that is restored when returning to a unsent command
@nickesc
nickesc merged commit 66d08c9 into main Aug 15, 2026
6 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