Skip to content

Introduce REPL comma-commands.#507

Merged
toddjonker merged 2 commits intoion-fusion:mainfrom
toddjonker:cli/comma
Mar 31, 2026
Merged

Introduce REPL comma-commands.#507
toddjonker merged 2 commits intoion-fusion:mainfrom
toddjonker:cli/comma

Conversation

@toddjonker
Copy link
Copy Markdown
Member

This follow's Racket's CLI: command lines that start with a comma are treated as commands to the REPL itself, not expressions to be evaluated. This is a more robust approach than trying to wire things through as Fusion expressions.

Replace the recently removed (exit) syntax form with the ,exit REPL command.

Add ,help to document these commands.

Description

Here we take advantage of the CLI framework refactoring by embedding another CLI inside the REPL command.

Next up the hard-coded (help) syntax form will be replaced by a ,doc REPL command.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This follow's Racket's CLI: command lines that start with a comma are treated as commands to the REPL itself, not expressions to be evaluated.  This is a more robust approach than trying to wire things through as Fusion expressions.

Replace the recently removed `(exit)` syntax form with the `,exit` REPL command.

Add `,help` to document these commands.
@toddjonker toddjonker marked this pull request as draft March 31, 2026 00:15
@toddjonker toddjonker marked this pull request as ready for review March 31, 2026 00:18
@toddjonker toddjonker merged commit 5cc8233 into ion-fusion:main Mar 31, 2026
4 checks passed
@toddjonker toddjonker deleted the cli/comma branch March 31, 2026 20:00
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