Skip to content

Commit

Permalink
Document that invocation_directory() returns an absolute path (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Apr 21, 2022
1 parent 7800c56 commit 32e15a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 32e15a2

Please sign in to comment.