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

Improve prompt support in JJ #2852

Merged
merged 6 commits into from
Jan 22, 2024
Merged

Conversation

torquestomp
Copy link
Contributor

@torquestomp torquestomp commented Jan 19, 2024

Adds ui.prompt...() functions and uses them to fix issue #2126

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

Copy link
Contributor

@PhilipMetzger PhilipMetzger left a comment

Choose a reason for hiding this comment

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

LGTM for next & prev. I defer to martin for the new test utilities/mini framework.

cli/src/commands/next.rs Outdated Show resolved Hide resolved
cli/src/ui.rs Show resolved Hide resolved
cli/src/ui.rs Outdated Show resolved Hide resolved
cli/src/ui.rs Outdated Show resolved Hide resolved
cli/src/commands/next.rs Outdated Show resolved Hide resolved
cli/src/commands/next.rs Outdated Show resolved Hide resolved
@ilyagr
Copy link
Contributor

ilyagr commented Jan 22, 2024

Idle thought (for future PRs maybe): I was thinking of trying something like https://github.com/console-rs/dialoguer for this, which might allow a nicer UI for a selection list. A simpler version is almost certainly better at first, though, and who knows how polished that library actually is.

cli/src/ui.rs Outdated Show resolved Hide resolved
cli/src/ui.rs Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@torquestomp torquestomp enabled auto-merge (rebase) January 22, 2024 21:53
@torquestomp torquestomp merged commit 2211717 into jj-vcs:main Jan 22, 2024
15 checks passed
@torquestomp torquestomp deleted the push-vxvrvssympvt branch January 22, 2024 22:05
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.

6 participants