1
1
mirror of https://github.com/casey/just.git synced 2024-11-23 02:44:56 +03:00

Document set working-directory (#2288)

This commit is contained in:
Yuri Astrakhan 2024-08-02 15:52:15 -04:00 committed by GitHub
parent c2207a906b
commit cf4c7260cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -772,6 +772,23 @@ $ just foo
/subdir
```
You can override working directory with `set working-directory := '…'`, whose value
is relative to the default working directory.
```just
set working-directory := 'bar'
@foo:
pwd
```
```sh
$ pwd
/home/bob
$ just foo
/home/bob/bar
```
### Aliases
Aliases allow recipes to be invoked on the command line with alternative names: