mirror of
https://github.com/weechat/weechat.git
synced 2026-06-24 20:06:38 +02:00
core: reformat hook_command arguments
This commit is contained in:
@@ -263,97 +263,102 @@ script_command_script (void *data, struct t_gui_buffer *buffer, int argc,
|
||||
void
|
||||
script_command_init ()
|
||||
{
|
||||
weechat_hook_command ("script",
|
||||
N_("WeeChat scripts manager"),
|
||||
N_("list [-o|-i] || search <text> || show <script>"
|
||||
" || load|unload|reload <script> [<script>...]"
|
||||
" || autoload|noautoload|toggleautoload <script> [<script>...]"
|
||||
" || install|remove|installremove|hold [-q] <script> [<script>...]"
|
||||
" || upgrade || update"),
|
||||
N_(" list: list loaded scripts (all languages)\n"
|
||||
" -o: send list of loaded scripts to buffer\n"
|
||||
" -i: copy list of loaded scripts in "
|
||||
"command line (for sending to buffer)\n"
|
||||
" search: search scripts by tags or text and "
|
||||
"display result on scripts buffer\n"
|
||||
" show: show detailed info about a script\n"
|
||||
" load: load script(s)\n"
|
||||
" unload: unload script(s)\n"
|
||||
" reload: reload script(s)\n"
|
||||
" autoload: autoload the script\n"
|
||||
" noautoload: do not autoload the script\n"
|
||||
"toggleautoload: toggle autoload\n"
|
||||
" install: install/upgrade script(s)\n"
|
||||
" remove: remove script(s)\n"
|
||||
" installremove: install or remove script(s), "
|
||||
"depending on current state\n"
|
||||
" hold: hold/unhold script(s) (a script held "
|
||||
"will not be upgraded any more and cannot be "
|
||||
"removed)\n"
|
||||
" -q: quiet mode: do not display messages\n"
|
||||
" upgrade: upgrade all installed scripts which "
|
||||
"are obsolete (new version available)\n"
|
||||
" update: update local scripts cache\n\n"
|
||||
"Without argument, this command opens a buffer "
|
||||
"with list of scripts.\n\n"
|
||||
"On script buffer, the possible status for each "
|
||||
"script are:\n"
|
||||
" * i a H r N\n"
|
||||
" | | | | | |\n"
|
||||
" | | | | | obsolete (new version available)\n"
|
||||
" | | | | running (loaded)\n"
|
||||
" | | | held\n"
|
||||
" | | autoloaded\n"
|
||||
" | installed\n"
|
||||
" popular script\n\n"
|
||||
"Keys on script buffer:\n"
|
||||
" alt+i install script\n"
|
||||
" alt+r remove script\n"
|
||||
" alt+l load script\n"
|
||||
" alt+L reload script\n"
|
||||
" alt+u unload script\n"
|
||||
" alt+A autoload script\n"
|
||||
" alt+h (un)hold script\n"
|
||||
" alt+v view script\n\n"
|
||||
"Input allowed on script buffer:\n"
|
||||
" i/r/l/L/u/h action on script (same as keys above)\n"
|
||||
" q close buffer\n"
|
||||
" $ refresh buffer\n"
|
||||
" s:x,y sort buffer using keys x and y (see /help "
|
||||
"script.look.sort)\n"
|
||||
" s: reset sort (use default sort)\n"
|
||||
" word(s) filter scripts: search word(s) in "
|
||||
"scripts (description, tags, ...)\n"
|
||||
" * remove filter\n\n"
|
||||
"Mouse actions on script buffer:\n"
|
||||
" wheel scroll list\n"
|
||||
" left button select script\n"
|
||||
" right button install/remove script\n\n"
|
||||
"Examples:\n"
|
||||
" /script search url\n"
|
||||
" /script install iset.pl buffers.pl\n"
|
||||
" /script remove iset.pl\n"
|
||||
" /script hold urlserver.py\n"
|
||||
" /script reload urlserver\n"
|
||||
" /script upgrade"),
|
||||
"list -o|-i"
|
||||
" || search %(script_tags)"
|
||||
" || show %(script_scripts)"
|
||||
" || load %(script_files)|%*"
|
||||
" || unload %(python_script)|%(perl_script)|"
|
||||
"%(ruby_script)|%(tcl_script)|%(lua_script)|"
|
||||
"%(guile_script)|%*"
|
||||
" || reload %(python_script)|%(perl_script)|"
|
||||
"%(ruby_script)|%(tcl_script)|%(lua_script)|"
|
||||
"%(guile_script)|%*"
|
||||
" || autoload %(script_scripts_installed)|%*"
|
||||
" || noautoload %(script_scripts_installed)|%*"
|
||||
" || toggleautoload %(script_scripts_installed)|%*"
|
||||
" || install %(script_scripts)|%*"
|
||||
" || remove %(script_scripts_installed)|%*"
|
||||
" || installremove %(script_scripts)|%*"
|
||||
" || hold %(script_scripts)|%*"
|
||||
" || update"
|
||||
" || upgrade",
|
||||
&script_command_script, NULL);
|
||||
weechat_hook_command (
|
||||
"script",
|
||||
N_("WeeChat scripts manager"),
|
||||
N_("list [-o|-i]"
|
||||
" || search <text>"
|
||||
" || show <script>"
|
||||
" || load|unload|reload <script> [<script>...]"
|
||||
" || autoload|noautoload|toggleautoload <script> [<script>...]"
|
||||
" || install|remove|installremove|hold [-q] <script> [<script>...]"
|
||||
" || upgrade"
|
||||
" || update"),
|
||||
N_(" list: list loaded scripts (all languages)\n"
|
||||
" -o: send list of loaded scripts to buffer\n"
|
||||
" -i: copy list of loaded scripts in command line (for "
|
||||
"sending to buffer)\n"
|
||||
" search: search scripts by tags or text and display result "
|
||||
"on scripts buffer\n"
|
||||
" show: show detailed info about a script\n"
|
||||
" load: load script(s)\n"
|
||||
" unload: unload script(s)\n"
|
||||
" reload: reload script(s)\n"
|
||||
" autoload: autoload the script\n"
|
||||
" noautoload: do not autoload the script\n"
|
||||
"toggleautoload: toggle autoload\n"
|
||||
" install: install/upgrade script(s)\n"
|
||||
" remove: remove script(s)\n"
|
||||
" installremove: install or remove script(s), depending on current "
|
||||
"state\n"
|
||||
" hold: hold/unhold script(s) (a script held will not be "
|
||||
"upgraded any more and cannot be removed)\n"
|
||||
" -q: quiet mode: do not display messages\n"
|
||||
" upgrade: upgrade all installed scripts which are obsolete "
|
||||
"(new version available)\n"
|
||||
" update: update local scripts cache\n"
|
||||
"\n"
|
||||
"Without argument, this command opens a buffer with list of scripts.\n"
|
||||
"\n"
|
||||
"On script buffer, the possible status for each script are:\n"
|
||||
" * i a H r N\n"
|
||||
" | | | | | |\n"
|
||||
" | | | | | obsolete (new version available)\n"
|
||||
" | | | | running (loaded)\n"
|
||||
" | | | held\n"
|
||||
" | | autoloaded\n"
|
||||
" | installed\n"
|
||||
" popular script\n"
|
||||
"\n"
|
||||
"Keys on script buffer:\n"
|
||||
" alt+i install script\n"
|
||||
" alt+r remove script\n"
|
||||
" alt+l load script\n"
|
||||
" alt+L reload script\n"
|
||||
" alt+u unload script\n"
|
||||
" alt+A autoload script\n"
|
||||
" alt+h (un)hold script\n"
|
||||
" alt+v view script\n"
|
||||
"\n"
|
||||
"Input allowed on script buffer:\n"
|
||||
" i/r/l/L/u/h action on script (same as keys above)\n"
|
||||
" q close buffer\n"
|
||||
" $ refresh buffer\n"
|
||||
" s:x,y sort buffer using keys x and y (see /help "
|
||||
"script.look.sort)\n"
|
||||
" s: reset sort (use default sort)\n"
|
||||
" word(s) filter scripts: search word(s) in scripts "
|
||||
"(description, tags, ...)\n"
|
||||
" * remove filter\n"
|
||||
"\n"
|
||||
"Mouse actions on script buffer:\n"
|
||||
" wheel scroll list\n"
|
||||
" left button select script\n"
|
||||
" right button install/remove script\n"
|
||||
"\n"
|
||||
"Examples:\n"
|
||||
" /script search url\n"
|
||||
" /script install iset.pl buffers.pl\n"
|
||||
" /script remove iset.pl\n"
|
||||
" /script hold urlserver.py\n"
|
||||
" /script reload urlserver\n"
|
||||
" /script upgrade"),
|
||||
"list -o|-i"
|
||||
" || search %(script_tags)"
|
||||
" || show %(script_scripts)"
|
||||
" || load %(script_files)|%*"
|
||||
" || unload %(python_script)|%(perl_script)|%(ruby_script)|"
|
||||
"%(tcl_script)|%(lua_script)|%(guile_script)|%*"
|
||||
" || reload %(python_script)|%(perl_script)|%(ruby_script)|"
|
||||
"%(tcl_script)|%(lua_script)|%(guile_script)|%*"
|
||||
" || autoload %(script_scripts_installed)|%*"
|
||||
" || noautoload %(script_scripts_installed)|%*"
|
||||
" || toggleautoload %(script_scripts_installed)|%*"
|
||||
" || install %(script_scripts)|%*"
|
||||
" || remove %(script_scripts_installed)|%*"
|
||||
" || installremove %(script_scripts)|%*"
|
||||
" || hold %(script_scripts)|%*"
|
||||
" || update"
|
||||
" || upgrade",
|
||||
&script_command_script, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user