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: migrate "cat" to matcher API #3497

Merged
merged 2 commits into from
Apr 16, 2024
Merged

cli: migrate "cat" to matcher API #3497

merged 2 commits into from
Apr 16, 2024

Conversation

yuja
Copy link
Contributor

@yuja yuja commented Apr 12, 2024

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

@yuja yuja force-pushed the push-zowltknqtmzo branch from 5ddbb86 to e96cff9 Compare April 13, 2024 04:45
cli/src/commands/cat.rs Outdated Show resolved Hide resolved
cli/src/commands/cat.rs Outdated Show resolved Hide resolved
cli/tests/test_cat_command.rs Outdated Show resolved Hide resolved
cli/tests/test_cat_command.rs Outdated Show resolved Hide resolved
@yuja yuja force-pushed the push-zowltknqtmzo branch 4 times, most recently from fba3df5 to eeaa7af Compare April 14, 2024 16:26
yuja added 2 commits April 15, 2024 10:54
Prepares for migrating to the matcher API. "Path exists but is not a file"
error is turned into a warning because the loop shouldn't terminate there.

"No such path" error message is also updated for consistency.
This is the last non-debug command that doesn't support file patterns. It
wouldn't make much sense to "cat" multiple files (despite the command name),
but doing that should be harmless.
@yuja yuja force-pushed the push-zowltknqtmzo branch from eeaa7af to 04a4b30 Compare April 15, 2024 02:03
@yuja yuja merged commit c147125 into jj-vcs:main Apr 16, 2024
16 checks passed
@yuja yuja deleted the push-zowltknqtmzo branch April 16, 2024 01:12
@yuja yuja changed the title cli: migrate "cat" to matcher API, print symlink target cli: migrate "cat" to matcher API, ~print symlink target~ Apr 16, 2024
@yuja yuja changed the title cli: migrate "cat" to matcher API, ~print symlink target~ cli: migrate "cat" to matcher API Apr 16, 2024
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