Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
module:exportcfg [2019/01/19 20:31] – [Syntax] Updated usage help output digital manmodule:exportcfg [2021/02/13 09:33] (current) – link to importcfg mlong
Line 21: Line 21:
         file-libs         file-libs
         file-dirs         file-dirs
 +        file-prots
 +        file-extrs
 +        file-comps
 +        file-viewers
 +        file-testers
 +        file-dlevents
         xtrn-secs         xtrn-secs
         xtrn-progs         xtrn-progs
Line 56: Line 62:
 | ''[[http://synchro.net/docs/jsobjs.html#file_area.lib_list_properties|file-libs]]''            | File Libraries | | ''[[http://synchro.net/docs/jsobjs.html#file_area.lib_list_properties|file-libs]]''            | File Libraries |
 | ''[[http://synchro.net/docs/jsobjs.html#file_area.lib_list.dir_list_properties|file-dirs]]''   | File Directories | | ''[[http://synchro.net/docs/jsobjs.html#file_area.lib_list.dir_list_properties|file-dirs]]''   | File Directories |
 +| ''file-prots''                                                                                 | File Transfer Protocols |
 +| ''file-extrs''                                                                                 | File Extractors |
 +| ''file-comps''                                                                                 | File Compressors |
 +| ''file-viewers''                                                                               | File Viewers |
 +| ''file-testers''                                                                               | File Testers |
 +| ''file-dlevents''                                                                              | File Download Events |
 | ''[[http://synchro.net/docs/jsobjs.html#xtrn_area.sec_list_properties|xtrn-secs]]''            | External Program Sections | | ''[[http://synchro.net/docs/jsobjs.html#xtrn_area.sec_list_properties|xtrn-secs]]''            | External Program Sections |
 | ''[[http://synchro.net/docs/jsobjs.html#xtrn_area.sec_list.prog_list_properties|xtrn-progs]]'' | External Programs (doors) | | ''[[http://synchro.net/docs/jsobjs.html#xtrn_area.sec_list.prog_list_properties|xtrn-progs]]'' | External Programs (doors) |
Line 66: Line 78:
  
 To choose which //groups// (Message Groups, File Libraries, or External Program Sections) from which to output configured items, use the ''-grp'' option. You can use the ''-grp'' option multiple times to specify multiple groups from which to output items. The groups of items will be output in their configured order (unless the ''-sort'' option is used), regardless of the order of the groups specified on the command-line. To choose which //groups// (Message Groups, File Libraries, or External Program Sections) from which to output configured items, use the ''-grp'' option. You can use the ''-grp'' option multiple times to specify multiple groups from which to output items. The groups of items will be output in their configured order (unless the ''-sort'' option is used), regardless of the order of the groups specified on the command-line.
-  jsexec msg-subs -grp main+  jsexec exportcfg.js msg-subs -grp main
  
 To chose which configuration //properties// to **include** in the output, pass one or more property names on the command-line (without any dashes). The properties may be specified in any order and their values will be output in the order given. To chose which configuration //properties// to **include** in the output, pass one or more property names on the command-line (without any dashes). The properties may be specified in any order and their values will be output in the order given.
-  jsexec msg-subs code name description+  jsexec exportcfg.js msg-subs code name description
      
 Alternatively, you can **exclude** specific properties from the output by specifying one or more property names with the ''-ex'' option. Alternatively, you can **exclude** specific properties from the output by specifying one or more property names with the ''-ex'' option.
-  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 exportcfg.js msg-subs -ex=can_read -ex=can_post -ex=is_operator -ex=is_moderated -ex=scan_ptr -ex=scan_cfg -ex=last_read
  
 +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 ''-inc'' option to specify the //internal code// of an item to include in the output. The ''-inc'' option may be used multiple times to specify multiple items to include.
 +  jsexec exportcfg.js msg-subs -inc=syncdata 
 +
 +To **exclude** specific configuration items (objects) from the output, you can use the ''-exc'' option. The ''-exc'' option may be used multiple times to specify multiple items to exclude from the output.
 +  jsexec exportcfg.js msg-subs -exc=syncdata 
 ==== Output format ==== ==== Output format ====
 ''exportcfg.js'' supports 3 primary flavors of text output: ''exportcfg.js'' supports 3 primary flavors of text output:
Line 161: Line 178:
      
 ===== See Also ===== ===== See Also =====
 +  * [[module:importcfg|Import Configuration]]
   * [[:module:|Modules]]   * [[:module:|Modules]]
  
-{{tag>javascript export json ini csv fidonet}}+{{tag>javascript export json .ini csv fidonet jsutil}}