~hristoast/wem

173cf26070cebef3c3164bdfa6445d6501a60c60 — Hristos N. Triantafillou 4 months ago 57b4233 master
Do pre run with exec
2 files changed, 12 insertions(+), 0 deletions(-)

M CHANGELOG.md
M actions/run.go
M CHANGELOG.md => CHANGELOG.md +1 -0
@@ 2,6 2,7 @@

## 0.9.0

* Pre run is now ran when doing `--exec`
* Added escapes to the tutorial init example run exe

## 0.8.9

M actions/run.go => actions/run.go +11 -0
@@ 187,6 187,17 @@ func Run(c *cfg.WemConfig, e *env.WineEnv,
			fmt.Println(s)

		} else {
			preRun, err := e.PreRunCtx()
			if err != nil {
				return err
			}
			if preRun != nil {
				err = preRun.Execute()
				if err != nil {
					return err
				}
			}

			target, err := e.RenderString(toExec[1])
			if err != nil {
				return err