1
0

More than 3 years have passed since last update.

Golangのos/execパッケージを利用するときのCD

Last updated at Posted at 2020-10-24
  • たとえば、2つ上の階層にあるディレクトリにあるMakefileを実行したいとき

os.Chdir("./../../")
cmd := exec.Command("make", "ENV_FILE=.env", "DOMAIN_NAME=vamdemic")
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0