How to run 'set' or 'source' with Ammonite Script

145 Views Asked by At

I want to do the following with Ammonite:

set -a
source .my-env
docker-compose up -d

My Solution looks like:

  %("set", "-a")
  %("source", "./devops/it.env")
  %("docker-compose", ...)

The first 2 lines do not work, I get No such file or directory.

I tried different variations:

  %bash("set", "-a")
  %sh("set", "-a")
  %("bash", "set", "-a")

The commands work in bash.

How is this done with Ammonite correctly?

0

There are 0 best solutions below