diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2017-04-28 23:17:58 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2017-04-28 23:20:07 -0400 |
| commit | 5a556eb62b59c5359ac514534b05b5144415535a (patch) | |
| tree | 8de1b2008e573de1e500e2eab641dcd510a215ef /README.md | |
| parent | 7fd1a8b61e79b10627a145be15961c8110289af5 (diff) | |
Adding ds alias for datasource function
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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`. |
