1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-08-06 22:32:54 +02:00

add echo $? to show exit code

This commit is contained in:
Kelly Brazil
2022-08-24 09:11:06 -07:00
parent 9699a184d1
commit 6c38a3bbaa
2 changed files with 6 additions and 2 deletions

View File

@ -314,7 +314,7 @@ object to the output that will include the magic command information, including
the exit code.
Here is an example with `ping`:
```json
```bash
$ jc --meta-out -p ping -c2 192.168.1.252
{
"destination_ip": "192.168.1.252",
@ -343,6 +343,8 @@ $ jc --meta-out -p ping -c2 192.168.1.252
"magic_command_exit": 2
}
}
$ echo $?
2
```
### Setting Custom Colors via Environment Variable

View File

@ -195,7 +195,7 @@ object to the output that will include the magic command information, including
the exit code.
Here is an example with `ping`:
```json
```bash
$ jc --meta-out -p ping -c2 192.168.1.252
{
"destination_ip": "192.168.1.252",
@ -224,6 +224,8 @@ $ jc --meta-out -p ping -c2 192.168.1.252
"magic_command_exit": 2
}
}
$ echo $?
2
```
### Setting Custom Colors via Environment Variable