Commit Graph

19 Commits

Author SHA1 Message Date
psinghal20 6492995a20
feat: add strftime function in templates
This commit adds strfttime function in templates to provide conventional format for ISO time based on C standard.

Signed-off-by: psinghal20 <psinghal20@gmail.com>
2019-10-11 14:35:39 +05:30
Adrien Delorme feb3da4f56 replace sed usage with replace and replace_all funcs 2019-09-17 16:02:05 +02:00
Wheeler Law 1fdce9dada Tests are passing 2018-11-05 12:30:41 -08:00
Wheeler Law de3bdec567 Working now 2018-11-05 12:30:41 -08:00
Wheeler Law 65c1b039cc Added a sed function. Not quite working yet 2018-11-05 12:30:41 -08:00
Megan Marsh 6356078d19 add a few more tests to split function 2018-08-24 15:27:14 -07:00
Ladar Levison 8fee49ab9f Added a 'split' function to parse template variables. 2018-06-08 00:41:57 -05:00
Krzysztof Wilczynski 7d80e37c14
Add new `packer_version` function.
Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
2017-11-21 22:04:33 +01:00
Matthew Hooker 5ea0eb0ec6
print time.Time with %v 2016-12-06 16:47:08 -08:00
Mitchell Hashimoto f1b3c8a7ae template/interpolate: build_name and build_type functions 2015-06-13 16:48:35 -04:00
Mitchell Hashimoto 639e63fd7c packer: test for template path 2015-05-29 14:29:32 -07:00
Mitchell Hashimoto 31d6dcb656 template: template path is the directory 2015-05-29 14:06:17 -07:00
Mitchell Hashimoto 2752e51e09 template/interpolate: add template_path 2015-05-29 13:55:59 -07:00
Mitchell Hashimoto 47b570a2d2 template/interpolate: flip disable to enableenv 2015-05-23 16:06:11 -07:00
Mitchell Hashimoto 1e745d9508 template/interpolate: user variables 2015-05-15 21:18:27 -07:00
Mitchell Hashimoto 7659a91445 template/interpolate: timestamp 2015-05-15 21:14:41 -07:00
Mitchell Hashimoto b84ec8da4b template/interpolate: isotime 2015-05-15 21:12:54 -07:00
Mitchell Hashimoto 5d205ec1fc template/interpolate: wd 2015-05-15 21:10:12 -07:00
Mitchell Hashimoto ff6573ce10 template/interpolate: basic + some funcs 2015-05-15 21:05:47 -07:00