UNPKG

fy-convertor

Version:

Convert excel/xml/json/bin/protocl/ts/as ...

44 lines (26 loc) 1.09 kB
# fy-convertor ## Description Convert excel/xml/json/bin/protocl/ts/as ... ## Installation npm i fy-convertor -g ## Instructions fy-convertor -c xml2json -p mu -w F:/FYM/trunk/project/tools/xml2json/temp/ -e .env -d ## Parameters #### -c --cmd **Must**。Convert command, only support `xml2json` for now, `excel/xml/json/bin/protocl/ts/as` are in schedual. #### -p --project **Must**。Project cod, ie. `mu` stands for Qiji. #### -w --workspace Optional. Workspace used to store temporary files. The current working path will be taken if not giver. #### -e --env **Must**。Enviromental configuration file to specify svn account/password and project configuration path, etc. Here is an example: ``` .env # svn, optional SVN_USERNAME=your_svn_username SVN_PASSWORD=your_svn_password # cfg, must CFG_LOCAL=F:\\FYM\\trunk\\project\\tools\\configs CFG_SVN=svn://192.168.8.72/FanXianClient/trunk/project/tools/configs ``` #### -d --debug Optional. Enable the debug mode, which will avoid svn commit operation. Use `-D` to disable it.