From 8975db2cc9cb7da87099699d82d84cd43fef0c37 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Wed, 27 Jun 2018 22:22:38 +0900 Subject: [PATCH] Rename execute to pipe --- README.md | 2 +- nimgen.nim | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 5fa79a4..561accf 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ The following keys apply to library source code (before processing) and generate ```search``` = search string providing context for following prepend/append/replace directives -```execute``` = execute a command on a file and store the output of the command as the new file contents. Ex: execute = "cat $file | grep 'static inline'" +```pipe``` = execute a command on a file and store the output of the command as the new file contents. Ex: pipe = "cat $file | grep 'static inline'" ```prepend``` = string value to prepend into file at beginning or before search diff --git a/nimgen.nim b/nimgen.nim index 2aeb0db..f28dd24 100644 --- a/nimgen.nim +++ b/nimgen.nim @@ -255,11 +255,12 @@ proc prepend(file: string, data: string, search="") = if idx != -1: content = content[0..