-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tink template create
now accepts data from STDIN (#133)
At present, we create a template as shown below: ``` $ tink template create --name example --path /tmp/example.tmpl ``` With the code changes in place, a user can now pipe the template data from a file. For example, if the data is saved in `/tmp/example.tmpl`, you can create a template with either of the following: ``` $ cat /tmp/example.tmpl | tink template create -n example $ tink template create --name example --path /tmp/example.tmpl ``` Signed-off-by: Gaurav Gahlot <[email protected]>
- Loading branch information
Showing
2 changed files
with
79 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shouldn't these
log.Println
lines be replaced with proper error handling (e.g.log.Fatal
)?