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

cli_util: make running an editor on a tempfile easier #2868

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

torquestomp
Copy link
Contributor

@torquestomp torquestomp commented Jan 22, 2024

This consolidates a bunch of boilerplate io+tempfile code used in sparse.rs and description_util.rs into cli_util.rs, making the two call sites much simpler. This makes it easier for future callers to invoke the workflow of 'have the user edit this arbitrary string' without going through extra setup.

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

@torquestomp torquestomp enabled auto-merge (rebase) January 22, 2024 23:46
@torquestomp torquestomp disabled auto-merge January 22, 2024 23:46
cli/src/cli_util.rs Outdated Show resolved Hide resolved
cli/src/cli_util.rs Show resolved Hide resolved
cli/src/cli_util.rs Outdated Show resolved Hide resolved
Consolidates bulky tempfile code in sparse.rs and description_util.rs into cli_util.rs
@torquestomp torquestomp force-pushed the dploch/edit-temp-file branch from 2059fb0 to 18ac9d5 Compare January 23, 2024 17:46
@torquestomp torquestomp enabled auto-merge (rebase) January 23, 2024 21:25
@torquestomp torquestomp merged commit 4024fb4 into main Jan 24, 2024
15 checks passed
@torquestomp torquestomp deleted the dploch/edit-temp-file branch January 24, 2024 07:49
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