Skip to content

Commit

Permalink
use snake case, else amber is throwing a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjmnjrk committed Jun 28, 2024
1 parent 121e9e0 commit 26645a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/basic_syntax/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ Command expression result is sent to the variable instead of _standard output_.
Command expression can also be interpolated with other expressions and variables

```ab
let filePath = "/path/to/file"
$cat {filePath}$ failed {
echo "Could not open '{filePath}'"
let file_path = "/path/to/file"
$cat {file_path}$ failed {
echo "Could not open '{file_path}'"
}
```

Expand All @@ -39,8 +39,8 @@ $cat {filePath}$ failed {
In order to get the exit code, you can use the `status` keyword. It will always return you the exit code of the last bash command or *failable function*.

```ab
let filePath = "/path/to/file"
$cat {filePath}$ failed {
let file_path = "/path/to/file"
$cat {file_path}$ failed {
echo "Error! Exit code: {status}"
}
echo "The status code is: {status}"
Expand Down

0 comments on commit 26645a1

Please sign in to comment.