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:
@@ -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]]
|
||||
|
||||
@@ -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]]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]]
|
||||
|
||||
@@ -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"})
|
||||
"""
|
||||
...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user