From 1e94616883292631a31e074b95a929beea57487d Mon Sep 17 00:00:00 2001 From: Fenris Wolf Date: Thu, 17 Jul 2025 12:43:53 +0000 Subject: [PATCH] [mod] readme --- readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index be27735..b4e238a 100644 --- a/readme.md +++ b/readme.md @@ -40,7 +40,7 @@ transforms a template string to its refined version by substituting its placehol #### basic -``` +```sh echo '{{flowers}} are {{color}}' | coin -a 'flowers:roses' -a 'color:red' # roses are red @@ -48,20 +48,20 @@ echo '{{flowers}} are {{color}}' | coin -a 'flowers:roses' -a 'color:red' The same result can be produced by using multiple `coin` calls: -``` +```sh echo '{{flowers}} are {{color}}' | coin -a 'flowers:roses' | coin -a 'color:red' ``` In some contextes curly brackets might might be reserved or not available for other reasons. This can be mitigated by using different placeholder indicators: -``` +```sh echo '<> are <>' | coin -o '<<' -c '>>' -a 'flowers:roses' -a 'color:red' ``` #### file arguments -``` +```sh echo -n "cornflowers" > /tmp/flowers.txt echo -n "blue" > /tmp/color.txt echo '{{flowers}} are {{color}}' | coin -a 'flowers:@/tmp/flowers.txt' -a 'color:@/tmp/color.txt' @@ -72,7 +72,7 @@ echo '{{flowers}} are {{color}}' | coin -a 'flowers:@/tmp/flowers.txt' -a 'color #### data file -``` +```sh echo -e "flowers: daffodills\ncolor: yellow" > /tmp/data.yaml echo '{{flowers}} are {{color}}' | coin -d /tmp/data.yaml