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

Document that invocation_directory() returns an absolute path (#1162)

This commit is contained in:
Casey Rodarmor 2022-04-20 21:51:03 -07:00 committed by GitHub
parent 7800c56c95
commit 32e15a2e51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -915,7 +915,7 @@ $ just
#### Invocation Directory
- `invocation_directory()` - Retrieves the path of the current working directory, before `just` changed it (chdir'd) prior to executing commands.
- `invocation_directory()` - Retrieves the absolute path to the current directory when `just` was invoked, before `just` changed it (chdir'd) prior to executing commands.
For example, to call `rustfmt` on files just under the "current directory" (from the user/invoker's perspective), use the following rule: