mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
Move '--paging' arg to config file.
This commit is contained in:
1 parent
5f576f1ecf
commit
278d841408
2 files changed
+7
-4
No files matched your search
@@ -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"
|
||||
@@ -343,12 +343,11 @@ fn config_location_test() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn config_read_paging_test() {
|
||||
fn config_read_arguments_from_file() {
|
||||
bat_with_config()
|
||||
.env("BAT_CONFIG_PATH", "bat.conf")
|
||||
.env("BAT_PAGER", "echo testing-config-file")
|
||||
.arg("test.txt")
|
||||
.assert()
|
||||
.success()
|
||||
.stdout("testing-config-file\n");
|
||||
.stdout("dummy-pager-from-config\n");
|
||||
}
|
||||
Reference in new issue
Block a user