Skip to content

Commit

Permalink
Add missing code formatting to sample code (consolidation#861)
Browse files Browse the repository at this point in the history
It appears this line needs to be beautified.
  • Loading branch information
davidsneighbour authored and greg-1-anderson committed Oct 5, 2019
1 parent 87850b5 commit d599294
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,9 @@ Some tasks may also attach data to the Result object. If this is done, the data

Commands should return a Result object obtained from a task; this will ensure that the command exit code is set correctly. If a command does not have a Result object available, then it may use a ResultData object. ResultData objects are just like Result objects, except the do not contain a reference to a task.

```
return new Robo\ResultData($exitcode, 'Error message.');
```

If the command returns a TaskInterface instead of a result, then the task will be executed, and the result from that task will be used as the final result of the command. See also `Formatters`, below.

Expand Down

0 comments on commit d599294

Please sign in to comment.