Expand the description of custom system commands

Fixes #2487
This commit is contained in:
Daniele Forsi committed 2018-03-20 16:12:49 +01:00
1 parent 8cdae335a2
commit 819d4d0fdf
1 file changed
+6 -1
+6 -1
View File
@@ -1092,7 +1092,12 @@ System
Use the following settings to add custom system commands to the "System" dropdown within OctoPrint's top bar.
Commands consist of a name, an action identifier, the commandline to execute and an optional confirmation message to
Commands consist of a ``name`` shown to the user, an ``action`` identifier used by the code and the actual
``command`` including any argument needed for its execution.
By default OctoPrint blocks until the command has returned so that the exit code can be used to show a success
or failure message; use the flag ``async: true`` for commands that don't return.
Optionally you can add a confirmation message to
display before actually executing the command (should be set to False if a confirmation dialog is not desired).
The following example defines a command for shutting down the system under Linux. It assumes that the user under which