Skip to content

Commit

Permalink
Update utils.md (#96)
Browse files Browse the repository at this point in the history
Fix wrong document for Status object.
  • Loading branch information
ndtoan96 authored Jul 13, 2024
1 parent dccfb2e commit 3a68e0d
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions docs/plugins/utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -670,18 +670,7 @@ Properties:

This object represents the exit status of a child process, and it is created by [`wait()`](#Child.wait), or [`output()`](#Command.output).

### `success()` {#Status.success}

```lua
local ok = status:success()
```

Returns whether the child process exited successfully, which is a boolean.

### `code()` {#Status.code}

```lua
local code = status:code()
```
Properties:

Returns the exit code of the child process, which is an integer if any.
- `success`: whether the child process exited successfully, which is a boolean.
- `code`: the exit code of the child process, which is an integer if any

0 comments on commit 3a68e0d

Please sign in to comment.