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

Basic work on making the repl a little nicer to use. #47

Closed

Conversation

0xForerunner
Copy link
Contributor

No description provided.

Comment on lines +91 to +93
if e.downcast_ref::<InquireError>().is_some() {
break
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we update this to mimic how chisel handles ctrl-c?

» chisel
Welcome to Chisel! Type `!help` to show available commands.
# ctrl-c
➜ 
(To exit, press Ctrl+C again)
➜ 
# exits

Comment on lines +137 to +142
let line = tokio::task::spawn_blocking(|| {
inquire::Text::new("Enter a command")
.with_help_message("'help' for more information")
.prompt()
})
.await??;
Copy link
Contributor

@0xKitsune 0xKitsune Jul 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can probably display "Enter a command" once at the beginning. Something like the following

Welcome to Opt8n Type `help` to show available commands.
➜ 
# some command 

What do you think about modeling the repl UX after chisel?
Here is a link to chisel in case you havent used it before!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be very nice, chisel should be a good reference to go off of.

@0xKitsune
Copy link
Contributor

Closing for now while cleaning up stale PRs. Feel free to open another PR with the changes if you would like!

@0xKitsune 0xKitsune closed this Aug 23, 2024
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.

3 participants