From 5a556eb62b59c5359ac514534b05b5144415535a Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Fri, 28 Apr 2017 23:17:58 -0400 Subject: Adding ds alias for datasource function Signed-off-by: Dave Henderson --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 9ca740bd..0b3ae63d 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,8 @@ Gomplate is an alternative that will let you process templates which also includ - [Commandline Arguments](#commandline-arguments) - [`--file`/`-f`, `--in`/`-i`, and `--out`/`-o`](#-file-f-in-i-and-out-o) - [Multiple inputs](#multiple-inputs) - - [`--datasource`/`-d`](#--datasource-d) + - [`--input-dir` and `--output-dir`](#-input-dir-and-output-dir) + - [`--datasource`/`-d`](#-datasource-d) - [Overriding the template delimiters](#overriding-the-template-delimiters) - [Syntax](#syntax) - [About `.Env`](#about-env) @@ -82,6 +83,7 @@ Gomplate is an alternative that will let you process templates which also includ - [Usage with HTTP data](#usage-with-http-data) - [Usage with Vault data](#usage-with-vault-data) - [`datasourceExists`](#datasourceexists) + - [`ds`](#ds) - [`ec2meta`](#ec2meta) - [Example](#example) - [`ec2dynamic`](#ec2dynamic) @@ -201,8 +203,8 @@ For processing multiple templates in a directory you can use `--input-dir` and ` Example: ```bash -# Process all files in directory "templates" with the datasource given -# and store the files with the same directory structure in "config" + # Process all files in directory "templates" with the datasource given + # and store the files with the same directory structure in "config" gomplate --input-dir=templates --output-dir=config --datasource config=config.yaml ``` @@ -662,6 +664,10 @@ $ echo '{{if (datasourceExists "test")}}{{datasource "test"}}{{else}}no worries{ no worries ``` +#### `ds` + +Alias to [`datasource`](#datasource) + #### `ec2meta` Queries AWS [EC2 Instance Metadata](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) for information. This only retrieves data in the `meta-data` path -- for data in the `dynamic` path use `ec2dynamic`. -- cgit v1.2.3