The schema defines the following additional types:
The root element of a dictatable configuration file.
Properties of the DictatableConfig
object:
Actions to perform if triggered.
The object is an array with all elements of the type DictatableConfigAction
.
Optional message. Can be used to explain this dictatable.
Conditions that, if met, makes this dictatable run. Empty triggers means it will always run.
The object is an array with all elements of the type DictatableConfigTrigger
.
Properties of the DictatableConfigAction
object:
A file that should contain a superset of the target file.
The target should have this chmod.
Can be a glob pattern to match many files or folders. Target will always be considered a folder preserving original filenames.
The object is an array with all elements of the type DictatableConfigActionExpression
.
Will be added to the end of the file if not found.
The object is an array with all elements of the type string
.
Will be added to the end of the file if not found. This works just like haveLineContaining but will respect the .dictatorConfig.json ignore.
The object is an array with all elements of the type string
.
A path that should EXIST or NOT_EXIST.
Optional message. Can be used to explain this requirement.
The object is an array with all elements of the type string
.
target
(string Can be a file or folder, if it does not exists it will be treated as a folder., required)
These may be used to make the tool behave differently, perhaps copy or patch different files, depending on operating system.
Properties of the DictatableConfigActionEnvironmentVariable
object:
Name of environment variable
Optional value of variable
Properties of the DictatableConfigActionExpression
object:
Expression
A value that should match.
Properties of the DictatableConfigTrigger
object:
And all these triggers.
The object is an array with all elements of the type DictatableConfigTrigger
.
can be regular expression.
A path that should EXIST or NOT_EXIST.
Negate the following triggers.
The object is an array with all elements of the type DictatableConfigTrigger
.
Or any of these triggers.
The object is an array with all elements of the type DictatableConfigTrigger
.
Trigger when running on platform. process.platform. https://nodejs.org/api/process.html#process_process_platform
The file to trigger on.