Skip to content

Working directory

Taichiro Suzuki edited this page Oct 23, 2018 · 7 revisions

I want to change a directory for each job

You can set working directory by dir.

Let us assume a simple project structure

-/
-/src
-/src/main.c

Edit your neph.yml like this

main:
  commands:
    - echo "Where am I?"
    - pwd
  dir:
    src

The result of pwd is path_to_the_project/src, you can confirm the result at .neph/main/log/log.out.