Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI command to execute a Forth script over SerMux and return the result #316

Open
hawkw opened this issue Apr 14, 2024 · 0 comments
Open
Labels
area: tools & build Related to host developer tools, including tracing, Crowtty and build processes kind: enhancement New feature or request meta: good first issue Good for newcomers

Comments

@hawkw
Copy link
Contributor

hawkw commented Apr 14, 2024

It would be nice to have a CLI tool to run on a dev machine that takes a Forth script from stdin, sends it over sermux to a MnemOS target, and then prints the result of executing the Forth script to stdout. This could be used to facilitate automated on-device testing.

This could probably be really simple to actually implement. Rather than having the CLI command actually own the USB TTY, I would probably expect it to connect to a running Crowtty instance on the host over TCP, so that other stuff like SerMux logging doesn't get interrupted. But, if there's no Crowtty instance running, it could potentially take ownership over the TTY instead?

I'm imagining a UX like this:

$ crowtty exec < '." hello world\n"'
[stderr] Connected to crowtty on 127.0.0.1:1004
hello world
ok.

Making it a subcommand of Crowtty could let us reuse some of the existing arg parsing and stuff.

@hawkw hawkw added area: tools & build Related to host developer tools, including tracing, Crowtty and build processes kind: enhancement New feature or request meta: good first issue Good for newcomers labels Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tools & build Related to host developer tools, including tracing, Crowtty and build processes kind: enhancement New feature or request meta: good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant