forked from extern/nushell
Autogenerate missing docs (#3514)
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
This commit is contained in:
25
docs/commands/all.md
Normal file
25
docs/commands/all.md
Normal file
@ -0,0 +1,25 @@
|
||||
# all?
|
||||
Find if the table rows matches the condition.
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> all? <condition> {flags}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
* `<condition>` the condition that must match
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
|
||||
## Examples
|
||||
Find if services are running
|
||||
```shell
|
||||
> echo [[status]; [UP] [UP]] | all? status == UP
|
||||
```
|
||||
|
||||
Check that all values are even
|
||||
```shell
|
||||
> echo [2 4 6 8] | all? ($it mod 2) == 0
|
||||
```
|
||||
|
Reference in New Issue
Block a user