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

Support a hidden arg --no-custom-assets that skips loading assets from the cache #1758

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

Enselic
Copy link
Collaborator

@Enselic Enselic commented Jul 27, 2021

The main use-case I have in mind for this flag is to make it easy to parameterize hyperfine (hyperfine --parameter-list assets --no-custom-assets, 'bat {assets} examples/simple.rs') to compare performance between custom vs integrated assets, as we work on #951. But I would be surprised if it would not come in handy for other uses as well in the future.

I choose to name the arg --no-custom-assets rather than --no-cache in order to be more future-proof with upcoming changes. Since it is a hidden arg, I figured it would be OK to do it like this. I do not mention it in CHANGELOG.md though, since I don't think we need to make it publicly visible at this point. But let me know if you disagree!

src/bin/bat/assets.rs Outdated Show resolved Hide resolved
src/bin/bat/assets.rs Outdated Show resolved Hide resolved
tests/integration_tests.rs Outdated Show resolved Hide resolved
tests/integration_tests.rs Outdated Show resolved Hide resolved
Copy link
Owner

@sharkdp sharkdp left a comment

Choose a reason for hiding this comment

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

Thanks. Sounds like a good idea.

@Enselic Enselic force-pushed the add-hidden-no-custom-assets-arg branch from 49a1e77 to f92bf43 Compare July 28, 2021 19:42
@Enselic
Copy link
Collaborator Author

Enselic commented Jul 28, 2021

All comments should be addressed now, so feel free to take another look when you have time.

@Enselic Enselic requested a review from sharkdp July 28, 2021 19:43
src/bin/bat/assets.rs Outdated Show resolved Hide resolved
@Enselic Enselic force-pushed the add-hidden-no-custom-assets-arg branch from f92bf43 to 1157c31 Compare July 29, 2021 06:07
@Enselic Enselic merged commit b040eff into sharkdp:master Jul 29, 2021
@Enselic Enselic deleted the add-hidden-no-custom-assets-arg branch July 29, 2021 06:27
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