Configuration
The format is nurt-config/1. The complete list of keys with types and defaults is in the specification; the schema is printed by nurt schema config.
Files
| System | System file | User file | State directory |
|---|---|---|---|
| Linux | /etc/nurt/nurt.toml |
$XDG_CONFIG_HOME/nurt/nurt.toml (default ~/.config/nurt/nurt.toml) |
$XDG_STATE_HOME/nurt/ |
| macOS | /Library/Application Support/Nurt/nurt.toml |
~/Library/Application Support/Nurt/nurt.toml |
~/Library/Application Support/Nurt/ |
| Windows | %PROGRAMDATA%\Nurt\nurt.toml |
%APPDATA%\Nurt\nurt.toml |
%LOCALAPPDATA%\Nurt\ |
A project may contain .nurt.toml.
Precedence
Later levels override earlier ones:
- built-in defaults
- the system file
- the user file
.nurt.tomlof the project- the file named by
NURT_CONFIG - the variables
NURT_* - the parameters of the call
Project files
.nurt.toml may set scope.base, scope.project_roots, report.* and run.*, and journal.* for trusted projects only. The keys scope.trusted_projects, scope.trust* and service.* in a project file are ignored and reported as trust_config_ignored.
Keys used in the documentation
| Key | Variable | Default | Meaning |
|---|---|---|---|
syntax.variant |
NURT_SYNTAX |
a |
variant of the text syntax |
syntax.tolerant |
NURT_SYNTAX_TOLERANT |
true |
accept the syntax of the other variants |
correction.enabled |
NURT_CORRECTION |
true |
corrections of the form |
journal.enabled |
NURT_JOURNAL |
true |
journal of changes |
journal.max_ops |
NURT_JOURNAL_MAX_OPS |
30 |
operations kept |
journal.max_age |
NURT_JOURNAL_MAX_AGE |
"30m" |
age of the operations kept |
run.timeout |
NURT_RUN_TIMEOUT |
"120s" |
time limit of run |
output.language |
NURT_LANGUAGE |
"en" |
language of help, describe, the messages of errors and the notes of a result (en or pl); codes and programs are never translated |
output.color |
NURT_COLOR |
"auto" |
colors for a person |
session.id |
NURT_SESSION |
none | session identifier in the journal |