Skip to content

Commit

Permalink
(doc) how to supply newline char to template output
Browse files Browse the repository at this point in the history
  • Loading branch information
driiftkiing committed Jun 23, 2023
1 parent 2453270 commit 26b3096
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ And to run use
```bash
npx youversion-cli
```

If you want to pass new-line character, ensure to use «ANSI-C Quoting» e.g.: `$'...'`. See example:

```shell
pnpm youversion-cli get-verses --template-output-format $'{0.passage}\n\n{1.passage}\n\n{0.book} | {1.book} {0.chapter}:{0.verses}\n\n\n' --config-file-path CONFIG_FILE_PATH
```

0 comments on commit 26b3096

Please sign in to comment.