Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
module:exportcfg [2019/01/15 13:42] – [Output format] typo digital man | module:exportcfg [2019/01/19 20:38] – [Filtering] Added examples of the -inc and -exc option usage. digital man | ||
---|---|---|---|
Line 10: | Line 10: | ||
< | < | ||
usage: exportcfg.js < | usage: exportcfg.js < | ||
- | [[-grp=< | + | |
- | [-< | + | |
- | [[[property][=< | + | |
+ | [[[property][=< | ||
[[-ex=< | [[-ex=< | ||
cfg-types (choose one): | cfg-types (choose one): | ||
- | msg-grps | + | |
- | msg-subs | + | msg-subs |
- | file-libs | + | file-libs |
- | file-dirs | + | file-dirs |
- | xtrn-secs | + | xtrn-secs |
- | xtrn-progs | + | xtrn-progs |
- | xtrn-events | + | xtrn-events |
- | xtrn-editors | + | xtrn-editors |
options: | options: | ||
- | < | + | |
- | -hdr | + | -hdr |
- | -ini | + | -ini |
- | -delim | + | -delim |
- | -term | + | -term ="" |
- | -quote | + | -quote |
- | -strip | + | -strip |
- | -ascii | + | -ascii |
- | -quiet | + | -quiet |
- | -sort | + | -sort =false |
- | -json | + | -json =false |
- | (tip: use -json=4 for pretty JSON output) | + | (tip: use -json=4 for pretty JSON output) |
- | (tip: use -ini=' | + | (tip: use -ini=' |
per-property options: | per-property options: | ||
- | < | + | |
- | -upper | + | -upper |
- | -lower | + | -lower |
- | -under | + | -under |
</ | </ | ||
Line 64: | Line 65: | ||
By default, '' | By default, '' | ||
- | To chose which //groups// (Message Groups, File Libraries, or External Program Sections) from which to output configured items, use the '' | + | To choose |
- | jsexec msg-subs -grp main | + | jsexec |
- | To chose which // | + | To chose which configuration |
- | jsexec msg-subs code name description | + | jsexec |
| | ||
Alternatively, | Alternatively, | ||
- | jsexec msg-subs -ex=can_read -ex=can_post -ex=is_operator -ex=is_moderated -ex=scan_ptr -ex=scan_cfg -ex=last_read | + | jsexec |
+ | By default, all //items// (objects) within the chosen configuration area are **included** in the output. To chose which items to include in the output, use the '' | ||
+ | jsexec exportcfg.js msg-subs -inc=syncdata | ||
+ | |||
+ | To **exclude** specific configuration items (objects) from the output, you can use the '' | ||
+ | jsexec exportcfg.js msg-subs -exc=syncdata | ||
==== Output format ==== | ==== Output format ==== | ||
'' | '' |