Crates.io | yogurt-yaml |
lib.rs | yogurt-yaml |
version | 0.2.0 |
source | src |
created_at | 2019-11-19 20:48:38.291639 |
updated_at | 2019-12-14 16:20:32.970492 |
description | Get embedded yaml from yogurt files |
homepage | https://yocurt.github.io/docs/yogurt/ |
repository | https://github.com/yocurt/yogurt-yaml |
max_upload_size | |
id | 182533 |
size | 60,766 |
This package allows the user to extract yaml from yogurt files, where yogurt files are bassically all files containing a Identifier[.*]
-like syntax. This package only extracts ID[.*]
, REF[.*]
, ADD[.*]
or END[.*]
. There will be a cli version with more options and functionality: yogurt-cli.
There is a lib and a executable, which can be used to extract yaml content specified by e.g.: ID[.*]
, REF[.*]
, ADD[.*]
or END[.*]
.
# Title
Text in a file.
ID[NAME, attribute: value]
## Next Title
More text
REF[NAME, attribute: value, other_attribute: other_value]
cat file.md | curt-extract -b "ID REF" > result.yaml
- {ID: NAME, attribute: value}
- {REF: NAME, attribute: value, other_attribute: other_value}
It is possible to extract yaml from any file.
cat file | curt-extract -b ID
Other commandline tools can be used to extend the functionality.
cat **/*.adoc | curt-extract -b ID | yaml json write - | less