state |
---|
draft |
In some cases, users want to change default values in settings.js
file without modifying the file contents. This design note proposed new command line option for changing values in settings.js
.
The basic concept of this feature is to introduce a new Function Library
configuration node (from here on referred to as func-lib
to save typing...
not necessarily the final name). This would be a node that can hold common code
accessible to regular Function nodes.
- @HiroyasuNishiyama
Add startup option to overwrite values in settings.js
.
-D
<property path>=
<JSON-value>
-D @
<path-to-JSON-file>
First option type overwrites specified property in the settings.js
by the specified JSON value.
Second option type overwrites properties in the settings.js
by contents of the specified JSON file. Other properties are untouched.
The settings.js
file is not modified with these options.
--define
can be used instead of -D
.
// enable project feature
-D editor.theme.projects.enables=true
// set console log level to "debug"
-D logging.console.level="debug"
// enable context storage
// [context-setting.json]
// "contextStorage": {
// "default": {
// "module": "localfilesystem"
// },
// }
-D @context-setting.json
Values that can be specified are limited to JSON value. Thus, settings that require JavaScript code execution (e.g. module require) can not be expressed.
- 2020-02-10 - Initial Design Note