Commit Graph

27 Commits

Author SHA1 Message Date
Andrey Nering
81e0f170ef accept setting dir of execution and improve tests
One test is not yet migrated. First we should have specific
Stdin, Stdout and Stderr for executor.
2017-06-24 20:09:05 -03:00
Andrey Nering
561349c820 Add ExeExt template function 2017-05-27 10:52:22 -03:00
Andrey Nering
b269c6e162 Allow interpolation on "generates" and "sources" attributes
Closes #26
2017-04-30 19:32:33 -03:00
Andrey Nering
8b76911675 Small refactor of variables replacing 2017-04-30 19:13:21 -03:00
Andrey Nering
7e5cfefede Simplify condition 2017-04-30 18:50:44 -03:00
Andrey Nering
6bc27baa96 Migrate from os/exec.Cmd to a native Go sh interpreter
github.com/mvdan/sh

Closes #23
2017-04-24 09:45:57 -03:00
Andrey Nering
0d84549b2a Add "ToSlash" and "FromSlash" to template functions
Closes #22
2017-04-16 17:17:32 -03:00
Andrey Nering
c1f9f73184 Use functions defined on github.com/Masterminds/sprig
Closes #21
2017-04-16 16:54:48 -03:00
Andrey Nering
c105294f61 Do not redirect stdin while running variables commands 2017-04-13 13:20:48 -03:00
Andrey Nering
822f7f83ee execext package: support context command 2017-04-12 20:32:56 -03:00
Andrey Nering
0db3e9a05d Fix "=" not being reconized in variables/environment variables
Fixes #19
2017-03-25 11:01:44 -03:00
Andrey Nering
8c5e7e89cd Little refactor on command creation 2017-03-12 17:18:59 -03:00
Andrey Nering
53234b91e0 Prevent running command more than once 2017-03-08 20:13:52 -03:00
Andrey Nering
588de5d0dd Environment variable won't be commands.
This fixes execution on cmd on Windows because there are default
environmen variable beginning with $
2017-03-08 20:03:21 -03:00
Andrey Nering
b9d1af315d Do not support multiline result command by now 2017-03-08 19:03:17 -03:00
Andrey Nering
3e3d8d8181 Use pointer as receiver to prevent copy 2017-03-08 18:36:05 -03:00
Andrey Nering
c3f3eb5f51 Unify ifs 2017-03-08 18:34:44 -03:00
Andrey Nering
3078a3ee68 Change "@" for "$" as dynamic var identifier 2017-03-08 18:32:32 -03:00
Sascha Andres
fa936a54c0 Replaced regex with easier code 2017-03-08 18:21:11 -03:00
Sascha Andres
478d1466d9 First implementation of dynamic variables 2017-03-08 18:21:11 -03:00
Andrey Nering
91d5fa5fe6 Switch variable replacing with Go's template engine 2017-03-05 16:49:44 -03:00
Andrey Nering
08ab113b79 Minor refactor of readTaskvarsFile() 2017-03-05 16:21:22 -03:00
Andrey Nering
f4c8997192 Simple refactor of getEnvironmentVariables() 2017-03-05 16:17:50 -03:00
Andrey Nering
fa850d1440 Rename "variables" key to "vars" for brevity 2017-03-05 15:56:22 -03:00
Sascha Andres
9bffad0f27 Changed name of Variables to Taskvars 2017-03-05 10:20:16 +01:00
Sascha Andres
d8f9b0697d Removed aliasing 2017-03-05 10:08:24 +01:00
Sascha Andres
e6bb0cfc6d Changed to be quiet when a variable is set 2017-03-05 10:07:08 +01:00