DOCS/man: use _name key for mp.command_native

This commit is contained in:
nanahi authored and Kacper Michajłow committed 2026-04-06 18:33:20 +02:00
1 parent 80582efca5
commit dbd31fd9d3
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1355,7 +1355,7 @@ Execution Commands
::
local r = mp.command_native({
name = "subprocess",
_name = "subprocess",
playback_only = false,
capture_stdout = true,
args = {"cat", "/proc/cpuinfo"},
+1 -1
View File
@@ -849,7 +849,7 @@ strictly part of the guaranteed API.
- rename ``cancellable`` field to ``playback_only``
- rename ``max_size`` to ``capture_size``
- set ``capture_stdout`` field to ``true`` if unset
- set ``name`` field to ``subprocess``
- set ``_name`` field to ``subprocess``
- call ``mp.command_native(copied_t)``
- if the command failed, create a dummy result table
- copy ``error_string`` to ``error`` field if the string is non-empty