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

feat(cli): rustyline instead of dialoguer #1238

Merged
merged 12 commits into from
Sep 20, 2023

Conversation

Alex6323
Copy link
Contributor

@Alex6323 Alex6323 commented Sep 15, 2023

Description of change

Replace dialoguer with rustyline for the interactive account management in the CLI wallet. This makes the wallet overall more convenient to use.

With this PR the following is now supported:

  • Improved TAB completion for commands (prints a list of matching commands on double TAB)
  • CTRL-L to clear the terminal (no need to type c or clear anymore)
  • HOME/END/... navigation
  • Auto-complete for commands from the history
  • Proper handling of CTRL-C (or any other interrupt)

Links to any relevant issues

Closes #437
Closes #260

Type of change

  • Enhancement (a non-breaking change which adds functionality)

How the change has been tested

Running the CLI wallet.

@Alex6323 Alex6323 marked this pull request as ready for review September 18, 2023 07:28
cli/Cargo.toml Outdated Show resolved Hide resolved
cli/CHANGELOG.md Show resolved Hide resolved
cli/Cargo.toml Outdated Show resolved Hide resolved
cli/src/account_completion.rs Outdated Show resolved Hide resolved
cli/src/account_history.rs Outdated Show resolved Hide resolved
Thoralf-M
Thoralf-M previously approved these changes Sep 18, 2023
cli/src/account.rs Outdated Show resolved Hide resolved
cli/src/account.rs Outdated Show resolved Hide resolved
cli/src/account.rs Outdated Show resolved Hide resolved
cli/src/account.rs Outdated Show resolved Hide resolved
cli/src/account.rs Outdated Show resolved Hide resolved
cli/src/account.rs Outdated Show resolved Hide resolved
cli/src/account.rs Outdated Show resolved Hide resolved
@thibault-martinez thibault-martinez linked an issue Sep 18, 2023 that may be closed by this pull request
cli/src/account.rs Outdated Show resolved Hide resolved
DaughterOfMars
DaughterOfMars previously approved these changes Sep 19, 2023
Thoralf-M
Thoralf-M previously approved these changes Sep 19, 2023
@thibault-martinez thibault-martinez merged commit b9dd984 into iotaledger:1.1 Sep 20, 2023
23 checks passed
@thibault-martinez thibault-martinez linked an issue Sep 20, 2023 that may be closed by this pull request
@Alex6323 Alex6323 deleted the feat/cli/rustyline branch September 20, 2023 08:51
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.

Investigate alternative to dialoguer CLI: handle CTRL-L to clear the terminal page
4 participants