summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAntonis Geralis <43617260+planetis-m@users.noreply.github.com>2024-08-11 05:35:09 +0300
committerGitHub <noreply@github.com>2024-08-11 10:35:09 +0800
commitc0aa951ee0fc02645d769963c78f0490ea52d90a (patch)
tree304ad4de774f8b48a5400092f53c2191ce12a15f /lib/system
parent6126a0bf46f4e29a368b8baefea69a2bcae54e93 (diff)
downloadNim-c0aa951ee0fc02645d769963c78f0490ea52d90a.tar.gz
Fixed nimscript docs (#23938)
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/nimscript.nim14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/system/nimscript.nim b/lib/system/nimscript.nim
index 40df3c7eb..cf81f6d86 100644
--- a/lib/system/nimscript.nim
+++ b/lib/system/nimscript.nim
@@ -256,9 +256,9 @@ proc exec*(command: string) {.
   ## a non-zero exit code, an OSError exception is raised. The command is
   ## executed relative to the current source path.
   ##
-  ## **Note:** If you need a version of `exec` that returns the exit code
-  ## and text output of the command, you can use `system.gorgeEx
-  ## <system.html#gorgeEx,string,string,string>`_.
+  ## .. note:: If you need a version of `exec` that returns the exit code
+  ##   and text output of the command, you can use `system.gorgeEx
+  ##   <system.html#gorgeEx,string,string,string>`_.
   log "exec: " & command:
     if rawExec(command) != 0:
       raise newException(OSError, "FAILED: " & command)
@@ -270,10 +270,10 @@ proc exec*(command: string, input: string, cache = "") {.
   ## a non-zero exit code, an OSError exception is raised.
   ##
   ## .. warning:: This version of `exec` is executed relative to the nimscript
-  ## module path, which affects how the command resolves relative paths. Thus
-  ## it is generally better to use `gorgeEx` directly when you need more
-  ## control over the execution environment or when working with commands
-  ## that deal with relative paths.
+  ##   module path, which affects how the command resolves relative paths. Thus
+  ##   it is generally better to use `gorgeEx` directly when you need more
+  ##   control over the execution environment or when working with commands
+  ##   that deal with relative paths.
   log "exec: " & command:
     let (output, exitCode) = gorgeEx(command, input, cache)
     echo output