Skip to content

Conversation

@sholderbach
Copy link
Member

Reuse outer Result for error handling only pass the special case
signals.

Reuse outer Result for error handling only pass the special case
signals.
* support exit via `exit` or `logout`
* Clear buffer on pressing Ctrl-c
* move one line down on Ctrl-c
  * Handling by main maybe suboptimal
src/engine.rs Outdated
pub enum Signal {
SUCCESS(String),
SIGINT, // Typically Ctrl-c
EOF, // Typically Ctrl-d
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you could use CtrlC and CtrlD here instead of SIGINT/EOF. Helps with the readability and probably is a little more accurate if we're running on a platform without signals.

@sophiajt
Copy link
Contributor

sophiajt commented Mar 16, 2021

Just a couple nits. Should be good after that and resolving the conflict.

@sophiajt
Copy link
Contributor

Looks good!

@sophiajt sophiajt merged commit 7f9cbe0 into nushell:main Mar 17, 2021
@sholderbach sholderbach deleted the readline-enum branch June 10, 2021 21:42
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