mirror of
https://github.com/jj-vcs/jj.git
synced 2025-12-23 06:01:01 +00:00
The `CommandNameAndArgs` struct is used in multiple places to specify external tools. Previously, the schema only allowed for this in `ui.pager`. This commit adds a few sample configs which define variables editors and fix tools as commands with env vars. The schema has also been updated to make these valid.
8 lines
188 B
TOML
8 lines
188 B
TOML
#:schema ../../../src/config-schema.json
|
|
[fix.tools.clang-format.command]
|
|
command = [
|
|
"/usr/bin/clang-format",
|
|
"--sort-includes",
|
|
"--assume-filename=$path",
|
|
]
|
|
env = { NO_COLOR = 1 }
|