forked from extern/nushell
Auto-generate markdown command docs (#4451)
* Finish updating * a couple improvements * Update renames * cleanup examples
This commit is contained in:
@ -1,25 +1,28 @@
|
||||
# all?
|
||||
Find if the table rows matches the condition.
|
||||
---
|
||||
title: all?
|
||||
layout: command
|
||||
version: 0.59.0
|
||||
---
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> all? <condition> {flags}
|
||||
```
|
||||
Test if every element of the input matches a predicate.
|
||||
|
||||
## Signature
|
||||
|
||||
```> all? (predicate)```
|
||||
|
||||
## Parameters
|
||||
* `<condition>` the condition that must match
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
- `predicate`: the predicate that must match
|
||||
|
||||
## Examples
|
||||
Find if services are running
|
||||
|
||||
Find if services are running
|
||||
```shell
|
||||
> echo [[status]; [UP] [UP]] | all? status == UP
|
||||
```
|
||||
```
|
||||
|
||||
Check that all values are even
|
||||
Check that all values are even
|
||||
```shell
|
||||
> echo [2 4 6 8] | all? ($it mod 2) == 0
|
||||
```
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user