diff options
| author | Benjamin Linskey | 2026-06-07 12:39:59 -0400 |
|---|---|---|
| committer | Benjamin Linskey | 2026-06-07 19:50:56 -0400 |
| commit | 2aa8ed870cb212328563b8a300b3a3b6754ce4e6 (patch) | |
| tree | 901c016c0c1279b4f3878acad758c5bb046d9d78 | |
| parent | 17f146903eb94c930371a40a5f018520fe9a9f6b (diff) | |
| download | tpl-2aa8ed870cb212328563b8a300b3a3b6754ce4e6.tar.gz | |
Rename command to “tpl”
| -rw-r--r-- | README.md | 4 | ||||
| -rwxr-xr-x | test.sh | 2 | ||||
| -rwxr-xr-x | tpl (renamed from template) | 6 |
3 files changed, 6 insertions, 6 deletions
@@ -32,7 +32,7 @@ Then pass your variable file and template file, in that order, as arguments to the `template` script. To see the examples above in action, run the following command: - ./template example/vars example/text.tpl + ./tpl example/vars example/text.tpl The result will be written to stdout. @@ -43,7 +43,7 @@ will be of little interest to most users. The program may be invoked as follows: - `template [variable file] [template file...]` + `tpl [variable file] [template file...]` The variable file will be parsed, the variables defined within will be substituted for all apperances of corresponding template variables that appear @@ -4,7 +4,7 @@ # is sufficient to verify the behavior we care about. Prints diff and exits # non-zero on error. -./template example/vars example/text.tpl > output.tmp +./tpl example/vars example/text.tpl > output.tmp diff output.tmp - <<-eof My favorite food is pizza, and my favorite beverage is coffee. @@ -14,11 +14,11 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -# template: An extremely simple general-purpose templating tool. +# tpl: An extremely simple general-purpose templating tool. # -# Usage: template [variable file] [template file...] +# Usage: tpl [variable file] [template file...] # -# More info: https://git.linskey.org/template +# More info: https://git.linskey.org/tpl BEGIN { FS = "[[:space:]]*=[[:space:]]*" } |