docs: Add examples to documentation
This commit is contained in:
@@ -15,6 +15,12 @@ Display error message in stderr, prefixed by check emoji
|
||||
|
||||
Display error message in stderr, prefixed by check emoji
|
||||
|
||||
#### Example
|
||||
|
||||
```bash
|
||||
show_error "Oh snap, that went horribly wrong"
|
||||
```
|
||||
|
||||
#### Arguments
|
||||
|
||||
* **$1** (string): Error message to display
|
||||
@@ -23,6 +29,12 @@ Display error message in stderr, prefixed by check emoji
|
||||
|
||||
Display success message in stderr, prefixed by cross emoji
|
||||
|
||||
#### Example
|
||||
|
||||
```bash
|
||||
show_success "There it is! World peace."
|
||||
```
|
||||
|
||||
#### Arguments
|
||||
|
||||
* **$1** (string): Success message to display
|
||||
|
||||
Reference in New Issue
Block a user