30 lines
309 B
Markdown
30 lines
309 B
Markdown
---
|
|
level: 2
|
|
---
|
|
|
|
# Plugins
|
|
|
|
Plugins are any script or executable that print output and exit with a number.
|
|
|
|
````md magic-move {lines: true}
|
|
```bash
|
|
#!/usr/bin/env bash
|
|
|
|
echo "HI THERE..."
|
|
|
|
exit 0
|
|
```
|
|
|
|
```bash
|
|
#!/usr/bin/env bash
|
|
|
|
# do some work...
|
|
sleep 10
|
|
|
|
echo "call the president..."
|
|
|
|
exit 1
|
|
```
|
|
|
|
|
|
````
|