Auto-generate markdown command docs (#4451)

* Finish updating

* a couple improvements

* Update renames

* cleanup examples
This commit is contained in:
JT
2022-02-13 21:22:51 -05:00
committed by GitHub
parent 06f5affc0b
commit 8c0a2d3c15
478 changed files with 7676 additions and 8045 deletions

View File

@ -1,26 +1,29 @@
# parse
---
title: parse
layout: command
version: 0.59.0
---
Parse columns from string data using a simple pattern.
## Usage
```shell
> parse <pattern> {flags}
```
## Signature
```> parse (pattern) --regex```
## Parameters
* `<pattern>` the pattern to match. Eg) "{foo}: {bar}"
## Flags
* -h, --help: Display this help message
* -r, --regex: use full regex syntax for patterns
- `pattern`: the pattern to match. Eg) "{foo}: {bar}"
- `--regex`: use full regex syntax for patterns
## Examples
Parse a string into two named columns
Parse a string into two named columns
```shell
> echo "hi there" | parse "{foo} {bar}"
```
```
Parse a string using regex pattern
Parse a string using regex pattern
```shell
> echo "hi there" | parse -r "(?P<foo>\w+) (?P<bar>\w+)"
```
```