Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
10: fix(cheat): don't use a pager when no cheat sheet found for the command r=orhun a=figsoda <!--- Thank you for contributing to halp! 🐙 --> ## Description cheat.sh doesn't return 404: chubin/cheat.sh#198 ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> ## How Has This Been Tested? ```console $ cargo run plz 42 Compiling halp v0.1.3 (/home/figsoda/halp) Finished dev [unoptimized + debuginfo] target(s) in 0.37s Running `target/debug/halp plz 42` ❤ Select operation · Show cheat sheet Unknown topic. Do you mean one of these topics maybe? * m4 50 * p4 50 * r2 50 (ノ´ヮ`)ノ*: ・゚ Select operation › Show man page ✧ Show cheat sheet Exit ``` <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> ## Screenshots / Logs (if applicable) ## Types of Changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation (no code change) - [ ] Refactor (refactoring production code) - [ ] Other <!--- (provide information) --> ## Checklist: <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> - [x] My code follows the code style of this project. - [ ] I have updated the documentation accordingly. - [x] I have formatted the code with [rustfmt](https://github.com/rust-lang/rustfmt). - [x] I checked the lints with [clippy](https://github.com/rust-lang/rust-clippy). - [ ] I have added tests to cover my changes. - [x] All new and existing tests passed. Co-authored-by: figsoda <[email protected]>
- Loading branch information