1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-06-22 00:05:45 +01:00

Fix cache subcommand and add tests

Treat the cache subcommand differently from --no-config:
For --no-config, insert args from selected environment variables
For cache, don't insert args
This commit is contained in:
Aaron Kollasch
2022-10-26 14:28:38 -04:00
parent 4bcea01e9d
commit e773b48135
4 changed files with 167 additions and 12 deletions
src/bin/bat
tests
examples
cache_source
integration_tests.rs

@ -0,0 +1,10 @@
%YAML 1.2
---
name: C
file_extensions: [c, h]
scope: source.c
contexts:
main:
- match: \b(if|else|for|while)\b
scope: keyword.control.c