1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

doc/api: fix Python example of function command_options

This commit is contained in:
Sébastien Helleu
2024-10-08 07:12:55 +02:00
parent 8223da0fe6
commit ffd7cc90fb
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -16904,7 +16904,7 @@ Script (Python):
def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ...
# example: allow any command except /exec
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec"})
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec", "delay": "2000"})
----
[[completion]]
+1 -1
View File
@@ -17266,7 +17266,7 @@ Script (Python) :
def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ...
# exemple : autoriser toute commande sauf /exec
rc = weechat.command_options("", "/une_commande paramètres", {"commands": "*,!exec"})
rc = weechat.command_options("", "/une_commande paramètres", {"commands": "*,!exec", "delay": "2000"})
----
[[completion]]
+1 -1
View File
@@ -17730,7 +17730,7 @@ Script (Python):
def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ...
# example: allow any command except /exec
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec"})
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec", "delay": "2000"})
----
// TRANSLATION MISSING
+1 -1
View File
@@ -17190,7 +17190,7 @@ rc = weechat_command_options (NULL, "/some_command arguments", options);
def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ...
# 例: /exec 以外のコマンド実行を許可
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec"})
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec", "delay": "2000"})
----
// TRANSLATION MISSING
+1 -1
View File
@@ -16449,7 +16449,7 @@ rc = weechat_command_options (NULL, "/some_command arguments", options);
def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ...
# пример: дозвољава се било која команда осим /exec
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec"})
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec", "delay": "2000"})
----
[[completion]]
+1 -1
View File
@@ -2294,7 +2294,7 @@ def command_options(buffer: str, command: str, options: Dict[str, str]) -> int:
::
# example: allow any command except /exec
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec"})
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec", "delay": "2000"})
"""
...