TextsCore2.rc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. #include "TextsCore.h"
  2. STRINGTABLE
  3. BEGIN
  4. SCRIPT_HELP_HELP,
  5. "help [ <command> [ <command2> ... ] ]\n"
  6. " Displays list of commands when no parameters are specified.\n"
  7. " Displays help for each command when some are specified.\n"
  8. "alias:\n"
  9. " man\n"
  10. "examples:\n"
  11. " help\n"
  12. " help ls\n"
  13. SCRIPT_EXIT_HELP,
  14. "exit\n"
  15. " Closes all sessions and terminates the program.\n"
  16. "alias:\n"
  17. " bye\n"
  18. SCRIPT_OPEN_HELP11,
  19. "open <site>\n"
  20. "open sftp|scp|ftp[es]|dav[s]|s3 :// [ <user> [ :password ] @ ] <host> [ :<port> ]\n"
  21. " Establishes connection to given host. Use either name of the site or\n"
  22. " specify host, username, port and protocol directly.\n"
  23. "switches:\n"
  24. " -privatekey=<file> SSH private key file\n"
  25. " -hostkey=<fingerprint> Fingerprint of server host key (SFTP and SCP only).\n"
  26. " -clientcert=<file> TLS/SSL client certificate file\n"
  27. " -certificate=<fingerprint> Fingerprint of TLS/SSL certificate\n"
  28. " (FTPS and WebDAVS only)\n"
  29. " -passphrase=<phr> Private key passphrase\n"
  30. " -passive=on|off Passive mode (FTP protocol only)\n"
  31. " -implicit Implicit TLS/SSL (FTP protocol only)\n"
  32. " -explicit Explicit TLS/SSL (FTP protocol only)\n"
  33. " -timeout=<sec> Server response timeout\n"
  34. " -username=<user> An alternative way to provide a username\n"
  35. " -password=<password> An alternative way to provide a password\n"
  36. " -rawsettings setting1=value1 setting2=value2 ...\n"
  37. " Configures any site settings using raw format\n"
  38. " as in an INI file\n"
  39. " -filezilla Load <site> from FileZilla site manager\n"
  40. " -newpassword=<password> Changes password to <password>\n"
  41. " -passwordsfromfiles Read all passwords from files\n"
  42. "examples:\n"
  43. " open\n"
  44. " open sftp://[email protected]:2222 -privatekey=mykey.ppk\n"
  45. " open [email protected]\n"
  46. " open example.com\n"
  47. SCRIPT_CLOSE_HELP,
  48. "close [ <session> ]\n"
  49. " Closes session specified by its number. When session number is not\n"
  50. " specified, closes currently selected session.\n"
  51. "examples:\n"
  52. " close\n"
  53. " close 1\n"
  54. SCRIPT_SESSION_HELP,
  55. "session [ <session> ]\n"
  56. " Makes session specified by its number active. When session number\n"
  57. " is not specified, lists connected sessions.\n"
  58. "examples:\n"
  59. " session\n"
  60. " session 1\n"
  61. SCRIPT_PWD_HELP,
  62. "pwd\n"
  63. " Prints current remote working directory for active session.\n"
  64. SCRIPT_CD_HELP,
  65. "cd [ <directory> ]\n"
  66. " Changes remote working directory for active session.\n"
  67. " If directory is not specified, changes to home directory.\n"
  68. "examples:\n"
  69. " cd /home/martin\n"
  70. " cd\n"
  71. SCRIPT_LS_HELP2,
  72. "ls [ <directory> ]/[ <wildcard> ]\n"
  73. " Lists the contents of specified remote directory. If directory is \n"
  74. " not specified, lists working directory.\n"
  75. " When wildcard is specified, it is treated as set of files to list.\n"
  76. " Otherwise, all files are listed.\n"
  77. "alias:\n"
  78. " dir\n"
  79. "effective option:\n"
  80. " failonnomatch\n"
  81. "examples:\n"
  82. " ls\n"
  83. " ls *.html\n"
  84. " ls /home/martin\n"
  85. SCRIPT_LPWD_HELP,
  86. "lpwd\n"
  87. " Prints current local working directory (valid for all sessions).\n"
  88. SCRIPT_LCD_HELP,
  89. "lcd <directory>\n"
  90. " Changes local working directory for all sessions.\n"
  91. "example:\n"
  92. " lcd d:\\\n"
  93. SCRIPT_LLS_HELP2,
  94. "lls [ <directory> ]\\[ <wildcard> ]\n"
  95. " Lists the contents of specified local directory. If directory is \n"
  96. " not specified, lists working directory.\n"
  97. " When wildcard is specified, it is treated as set of files to list.\n"
  98. " Otherwise, all files are listed.\n"
  99. "effective option:\n"
  100. " failonnomatch\n"
  101. "examples:\n"
  102. " lls\n"
  103. " lls *.html\n"
  104. " lls d:\\\n"
  105. SCRIPT_RM_HELP2,
  106. "rm <file> [ <file2> ... ]\n"
  107. " Removes one or more remote files. If remote recycle bin is\n"
  108. " configured, moves file to the bin instead of deleting it.\n"
  109. " Filename can be replaced with wildcard to select multiple files.\n"
  110. "effective option:\n"
  111. " failonnomatch\n"
  112. "examples:\n"
  113. " rm index.html\n"
  114. " rm index.html about.html\n"
  115. " rm *.html\n"
  116. SCRIPT_RMDIR_HELP,
  117. "rmdir <directory> [ <directory2> ... ]\n"
  118. " Removes one or more remote directories. If remote recycle bin is\n"
  119. " configured, moves directory to the bin instead of deleting it.\n"
  120. "example:\n"
  121. " rmdir public_html\n"
  122. SCRIPT_MV_HELP2,
  123. "mv <file> [ <file2> ... ] [ <directory>/ ][ <newname> ]\n"
  124. " Moves or renames one or more remote files. Destination directory or new\n"
  125. " name or both must be specified. Destination directory must end with \n"
  126. " slash. Operation mask can be used instead of new name.\n"
  127. " Filename can be replaced with wildcard to select multiple files.\n"
  128. "alias:\n"
  129. " rename\n"
  130. "effective option:\n"
  131. " failonnomatch\n"
  132. "examples:\n"
  133. " mv index.html public_html/\n"
  134. " mv index.html about.*\n"
  135. " mv index.html public_html/about.*\n"
  136. " mv public_html/index.html public_html/about.html /home/martin/*.bak\n"
  137. " mv *.html /home/backup/*.bak\n"
  138. SCRIPT_CHMOD_HELP2,
  139. "chmod <mode> <file> [ <file2> ... ]\n"
  140. " Changes permissions of one or more remote files. Mode can be specified\n"
  141. " as three or four-digit octal number.\n"
  142. " Filename can be replaced with wildcard to select multiple files.\n"
  143. "effective option:\n"
  144. " failonnomatch\n"
  145. "examples:\n"
  146. " chmod 644 index.html about.html\n"
  147. " chmod 1700 /home/martin/public_html\n"
  148. " chmod 644 *.html\n"
  149. SCRIPT_LN_HELP,
  150. "ln <target> <symlink>\n"
  151. " Creates remote symbolic link.\n"
  152. "alias:\n"
  153. " symlink\n"
  154. "example:\n"
  155. " ln /home/martin/public_html www\n"
  156. SCRIPT_MKDIR_HELP,
  157. "mkdir <directory>\n"
  158. " Creates remote directory.\n"
  159. "example:\n"
  160. " mkdir public_html\n"
  161. SCRIPT_GET_HELP8,
  162. "get <file> [ [ <file2> ... ] <directory>\\[ <newname> ] ]\n"
  163. " Downloads one or more files from remote directory to local directory.\n"
  164. " If only one parameter is specified downloads the file to local working\n"
  165. " directory. If more parameters are specified, all except the last one\n"
  166. " specify set of files to download. The last parameter specifies target\n"
  167. " local directory and optionally operation mask to store file(s) under\n"
  168. " different name. Destination directory must end with backslash. \n"
  169. " Filename can be replaced with wildcard to select multiple files.\n"
  170. " To download more files to current working directory use '.\\' as the\n"
  171. " last parameter.\n"
  172. "alias:\n"
  173. " recv, mget\n"
  174. "switches:\n"
  175. " -delete Delete source remote file(s) after transfer\n"
  176. " -resume Resume transfer if possible (SFTP and FTP protocols only)\n"
  177. " -append Append file to end of target file (SFTP protocol only)\n"
  178. " -preservetime Preserve timestamp\n"
  179. " -nopreservetime Do not preserve timestamp\n"
  180. " -speed=<kbps> Limit transfer speed (in KB/s)\n"
  181. " -transfer=<mode> Transfer mode: binary, ascii, automatic\n"
  182. " -filemask=<mask> Sets file mask.\n"
  183. " -resumesupport=<state> Configures resume support.\n"
  184. " Possible values are 'on', 'off' or threshold\n"
  185. " -neweronly Transfer new and updated files only\n"
  186. " -latest Transfer the latest file only\n"
  187. "effective options:\n"
  188. " confirm, failonnomatch, reconnecttime\n"
  189. "examples:\n"
  190. " get index.html\n"
  191. " get -delete index.html about.html .\\\n"
  192. " get index.html about.html d:\\www\\\n"
  193. " get public_html/index.html d:\\www\\about.*\n"
  194. " get *.html *.png d:\\www\\*.bak\n"
  195. SCRIPT_PUT_HELP8,
  196. "put <file> [ [ <file2> ... ] <directory>/[ <newname> ] ]\n"
  197. " Uploads one or more files from local directory to remote directory.\n"
  198. " If only one parameter is specified uploads the file to remote working\n"
  199. " directory. If more parameters are specified, all except the last one\n"
  200. " specify set of files to upload. The last parameter specifies target\n"
  201. " remote directory and optionally operation mask to store file(s) under\n"
  202. " different name. Destination directory must end with slash. \n"
  203. " Filename can be replaced with wildcard to select multiple files.\n"
  204. " To upload more files to current working directory use './' as the\n"
  205. " last parameter.\n"
  206. "alias:\n"
  207. " send, mput\n"
  208. "switches:\n"
  209. " -delete Delete source local file(s) after transfer\n"
  210. " -resume Resume transfer if possible (SFTP and FTP protocols only)\n"
  211. " -append Append file to end of target file (SFTP protocol only)\n"
  212. " -preservetime Preserve timestamp\n"
  213. " -nopreservetime Do not preserve timestamp\n"
  214. " -permissions=<mode> Set permissions\n"
  215. " -nopermissions Keep default permissions\n"
  216. " -speed=<kbps> Limit transfer speed (in KB/s)\n"
  217. " -transfer=<mode> Transfer mode: binary, ascii, automatic\n"
  218. " -filemask=<mask> Sets file mask.\n"
  219. " -resumesupport=<state> Configures resume support.\n"
  220. " Possible values are 'on', 'off' or threshold\n"
  221. " -neweronly Transfer new and updated files only\n"
  222. " -latest Transfer the latest file only\n"
  223. "effective options:\n"
  224. " confirm, failonnomatch, reconnecttime\n"
  225. "examples:\n"
  226. " put index.html\n"
  227. " put -delete index.html about.html ./\n"
  228. " put -permissions=644 index.html about.html /home/martin/public_html/\n"
  229. " put d:\\www\\index.html about.*\n"
  230. " put *.html *.png /home/martin/backup/*.bak\n"
  231. SCRIPT_OPTION_HELP7,
  232. "option [ <option> [ <value> ] ]\n"
  233. " If no parameters are specified, lists all script options and their\n"
  234. " values. When one parameter is specified only, shows value of the option.\n"
  235. " When two parameters are specified sets value of the option.\n"
  236. " Initial values of some options are taken from application configuration,\n"
  237. " however modifing the options does not change the application\n"
  238. " configuration.\n"
  239. "options are:\n"
  240. " echo on|off\n"
  241. " Toggles echoing of command being executed.\n"
  242. " Commands affected: all\n"
  243. " batch on|off|abort|continue\n"
  244. " Toggles batch mode (all prompts are automatically replied\n"
  245. " negatively). When 'on', it is recommended to set 'confirm'\n"
  246. " to 'off' to allow overwrites. With 'abort', script is aborted\n"
  247. " when any error occurs. With 'continue', all errors are ignored.\n"
  248. " Reconnect time is automatically limited do 120s, if not limited yet.\n"
  249. " Commands affected: nearly all\n"
  250. " confirm on|off\n"
  251. " Toggles confirmations (overwrite, etc.).\n"
  252. " Commands affected: get, put\n"
  253. " reconnecttime off | <sec>\n"
  254. " Time limit in seconds to try reconnecting broken sessions.\n"
  255. " Commands affected: get, put, synchronize, keepuptodate\n"
  256. " failonnomatch on|off\n"
  257. " When 'on', commands fail when file mask matches no files.\n"
  258. " When 'off', commands do nothing when file mask matches no files.\n"
  259. " Commands affected: get, put, rm, mv, chmod, ls, lls\n"
  260. "examples:\n"
  261. " option\n"
  262. " option batch\n"
  263. " option confirm off\n"
  264. SCRIPT_SYNCHRONIZE_HELP7,
  265. "synchronize local|remote|both [ <local directory> [ <remote directory> ] ]\n"
  266. " When the first parameter is 'local' synchronises local directory with\n"
  267. " remote one. When the first parameter is 'remote' synchronises remote\n"
  268. " directory with local one. When the first parameter is 'both' synchronises\n"
  269. " directories one against the other.\n"
  270. " When directories are not specified, current working directories are\n"
  271. " synchronized.\n"
  272. " Note: Overwrite confirmations are always off for the command.\n"
  273. "switches:\n"
  274. " -preview Preview changes only, do not synchronize\n"
  275. " -delete Delete obsolete files\n"
  276. " -mirror Mirror mode (synchronize also older files).\n"
  277. " Ignored for 'both'.\n"
  278. " -criteria=<criteria> Comparison criteria. Possible values are 'none', 'time',\n"
  279. " 'size' and 'either'. Ignored for 'both' mode.\n"
  280. " -permissions=<mode> Set permissions\n"
  281. " -nopermissions Keep default permissions\n"
  282. " -speed=<kbps> Limit transfer speed (in KB/s)\n"
  283. " -transfer=<mode> Transfer mode: binary, ascii, automatic\n"
  284. " -filemask=<mask> Sets file mask.\n"
  285. " -resumesupport=<state> Configures resume support.\n"
  286. " Possible values are 'on', 'off' or threshold\n"
  287. "effective options:\n"
  288. " reconnecttime\n"
  289. "examples:\n"
  290. " synchronize remote -delete\n"
  291. " synchronize both d:\\www /home/martin/public_html\n"
  292. SCRIPT_KEEPUPTODATE_HELP5,
  293. "keepuptodate [ <local directory> [ <remote directory> ] ]\n"
  294. " Watches for changes in local directory and reflects them on remote one.\n"
  295. " When directories are not specified, current working directories are\n"
  296. " synchronized. To stop watching for changes press Ctrl-C.\n"
  297. " Note: Overwrite confirmations are always off for the command.\n"
  298. "switches:\n"
  299. " -delete Delete obsolete files\n"
  300. " -permissions=<mode> Set permissions\n"
  301. " -nopermissions Keep default permissions\n"
  302. " -speed=<kbps> Limit transfer speed (in KB/s)\n"
  303. " -transfer=<mode> Transfer mode: binary, ascii, automatic\n"
  304. " -filemask=<mask> Sets file mask.\n"
  305. " -resumesupport=<state> Configures resume support.\n"
  306. " Possible values are 'on', 'off' or threshold\n"
  307. "effective options:\n"
  308. " reconnecttime\n"
  309. "examples:\n"
  310. " keepuptodate -delete\n"
  311. " keepuptodate d:\\www /home/martin/public_html\n"
  312. SCRIPT_CALL_HELP2,
  313. "call <command>\n"
  314. " With SFTP and SCP protocols, executes arbitrary remote shell command.\n"
  315. " If current session does not allow execution of arbitrary remote command\n"
  316. " separate shell session will be automatically opened.\n"
  317. " With FTP protocol, executes a protocol command.\n"
  318. " The command must not require user input.\n"
  319. "alias:\n"
  320. " !\n"
  321. "example:\n"
  322. " call touch index.html\n"
  323. SCRIPT_ECHO_HELP,
  324. "echo <message>\n"
  325. " Prints message onto script output.\n"
  326. "example:\n"
  327. " echo Starting upload...\n"
  328. SCRIPT_STAT_HELP,
  329. "stat <file>\n"
  330. " Retrieves and lists attributes of specified remote file.\n"
  331. "example:\n"
  332. " stat index.html\n"
  333. SCRIPT_CHECKSUM_HELP,
  334. "checksum <alg> <file>\n"
  335. " Calculates checksum of remote file.\n"
  336. "example:\n"
  337. " checksum sha-1 index.html\n"
  338. SCRIPT_CP_HELP,
  339. "cp <file> [ <file2> ... ] [ <directory>/ ][ <newname> ]\n"
  340. " Duplicates one or more remote files. Destination directory or new\n"
  341. " name or both must be specified. Destination directory must end with\n"
  342. " slash. Operation mask can be used instead of new name.\n"
  343. " Filename can be replaced with wildcard to select multiple files.\n"
  344. "effective option:\n"
  345. " failonnomatch\n"
  346. "examples:\n"
  347. " cp index.html public_html/\n"
  348. " cp index.html about.*\n"
  349. " cp index.html public_html/about.*\n"
  350. " cp public_html/index.html public_html/about.html /home/martin/*.bak\n"
  351. " cp *.html /home/backup/*.bak\n"
  352. END