From 32e15a2e513b64a5d22ba68d9fc0b8e213220aa6 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Wed, 20 Apr 2022 21:51:03 -0700 Subject: [PATCH] Document that `invocation_directory()` returns an absolute path (#1162) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 530825f..134656e 100644 --- a/README.md +++ b/README.md @@ -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: