1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-09 19:51:48 +00:00

Include syntaxes and themes in repository

This changes a few things:

- All syntaxes and themes are now stored (as submodules) under
  assets/syntaxes and assets/themes

- The default directories for syntaxes and themes are "syntaxes"
  and "themes" (used to be "syntax" and "themes")

- The "bat cache" command can now take a `--source <dir>` and
  `--target <dir>` option.

- The cached files have been renamed to "themes.bin" and "syntaxes.bin"
This commit is contained in:
sharkdp
2018-05-16 21:22:16 +02:00
committed by David Peter
parent 9af1d2b891
commit 145b99f01c
17 changed files with 78 additions and 53 deletions
+19 -2
View File
@@ -117,7 +117,8 @@ impl App {
Arg::with_name("init")
.long("init")
.short("i")
.help("Initialize the cache by loading from the config dir"),
.help("Initialize the syntax/theme cache")
.long_help("Initialize the syntax/theme cache by loading from the source directory (default: the configuration directory)"),
)
.arg(
Arg::with_name("clear")
@@ -135,7 +136,23 @@ impl App {
ArgGroup::with_name("cache-actions")
.args(&["init", "clear", "config-dir"])
.required(true),
),
)
.arg(
Arg::with_name("source")
.long("source")
.requires("init")
.takes_value(true)
.value_name("dir")
.help("Use a different source for loading syntaxes and themes from"),
)
.arg(
Arg::with_name("target")
.long("target")
.requires("init")
.takes_value(true)
.value_name("dir")
.help("Use a different source to store the cached syntax and theme set"),
)
)
.help_message("Print this help message.")
.version_message("Show version information.")