Update YAML export description in docs (#1591)

This commit is contained in:
Kevin 2022-09-10 11:48:20 -07:00 committed by GitHub
parent 405e0c2199
commit b5a22379b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -271,13 +271,14 @@ supported by many programs and programming languages.
### YAML ### YAML
``` sh ``` sh
jrnl --format yaml jrnl --format yaml --file 'my_directory/'
``` ```
This outputs your journal into YAML format. YAML is a commonly used data format and is This outputs your journal into YAML format. YAML is a commonly used data format and is
supported by many programs and programming languages. supported by many programs and programming languages. [Exporting to directories](#exporting-to-directories) is the
only supported YAML export option and each entry will be written to a separate file.
**Example output**: **Example file**:
``` yaml ``` yaml
title: This is the second sample entry title: This is the second sample entry
date: 2020-07-01 20:00 date: 2020-07-01 20:00
@ -335,14 +336,14 @@ jrnl --format json > myjournal.json
If the `--file` argument is a directory, jrnl will export each entry into an individual file: If the `--file` argument is a directory, jrnl will export each entry into an individual file:
``` sh ``` sh
jrnl --format json --file my_entries/ jrnl --format yaml --file my_entries/
``` ```
The contents of `my_entries/` will then look like this: The contents of `my_entries/` will then look like this:
``` output ``` output
my_entries/ my_entries/
|- 2013_06_03_a-beautiful-day.json |- 2013_06_03_a-beautiful-day.yaml
|- 2013_06_07_dinner-with-gabriel.json |- 2013_06_07_dinner-with-gabriel.yaml
|- ... |- ...
``` ```