feat: change output to echo via pager

This commit is contained in:
Dave Gallant
2020-08-03 15:37:39 -04:00
parent ad4a072325
commit ee6939aafe
5 changed files with 48 additions and 37 deletions

View File

@@ -35,6 +35,15 @@ lint:
test: tmp/.tests-passed.sentinel
.PHONY: test
## examples: Run basic commands
examples: tmp/.tests-passed.sentinel
> rfd --version
> rfd threads >/dev/null
> rfd threads --sort-by score >/dev/null
> rfd search 'pizza' >/dev/null
> rfd search '(coffee|starbucks)' >/dev/null
.PHONY: examples
# Tests - re-ran if any file under src has been changed since tmp/.tests-passed.sentinel was last touched
tmp/.tests-passed.sentinel: $(shell find ${SRC} -type f)
> mkdir -p $(@D)
@@ -45,7 +54,7 @@ tmp/.tests-passed.sentinel: $(shell find ${SRC} -type f)
pr: precommit lint test
.PHONY: pr
ci: lint test
ci: lint test examples
.PHONY: ci
## help: Print this help message