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

Minimal enum to address #18 #22

Merged
merged 5 commits into from
Mar 17, 2021
Merged

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.

None yet

2 participants