Document working directory (#2053)
This commit is contained in:
parent
7359deeb99
commit
f3eebb74d8
25
README.md
25
README.md
@ -755,6 +755,31 @@ $ just --list --list-heading ''
|
||||
build
|
||||
```
|
||||
|
||||
### Working Directory
|
||||
|
||||
By default, recipes run with the working directory set to the directory that
|
||||
contains the `justfile`.
|
||||
|
||||
The `[no-cd]` attribute can be used to make recipes run with the working
|
||||
directory set to directory in which `just` was invoked.
|
||||
|
||||
```just
|
||||
@foo:
|
||||
pwd
|
||||
|
||||
[no-cd]
|
||||
@bar:
|
||||
pwd
|
||||
```
|
||||
|
||||
```sh
|
||||
$ cd subdir
|
||||
$ just foo
|
||||
/
|
||||
: just bar
|
||||
/subdir
|
||||
```
|
||||
|
||||
### Aliases
|
||||
|
||||
Aliases allow recipes to be invoked on the command line with alternative names:
|
||||
|
Loading…
Reference in New Issue
Block a user