Move '--paging' arg to config file.

This commit is contained in:
sharkdp 2018-11-04 10:56:31 +01:00 committed by David Peter
parent 5f576f1ecf
commit 278d841408
2 changed files with 7 additions and 4 deletions

View File

@ -1 +1,5 @@
--paging=always # Make sure that the pager gets executed
--paging=always
# Output a dummy message for the integration test.
--pager="echo dummy-pager-from-config"

View File

@ -343,12 +343,11 @@ fn config_location_test() {
} }
#[test] #[test]
fn config_read_paging_test() { fn config_read_arguments_from_file() {
bat_with_config() bat_with_config()
.env("BAT_CONFIG_PATH", "bat.conf") .env("BAT_CONFIG_PATH", "bat.conf")
.env("BAT_PAGER", "echo testing-config-file")
.arg("test.txt") .arg("test.txt")
.assert() .assert()
.success() .success()
.stdout("testing-config-file\n"); .stdout("dummy-pager-from-config\n");
} }