-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add POE_PROJECT_DIR env var as default for -C option (#215)
Also add page to docs for environment variables.
- Loading branch information
Showing
5 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Environment variables | ||
===================== | ||
|
||
Internal Environment variables | ||
------------------------------ | ||
|
||
The following environment variables are used by Poe the Poet internally, and can be accessed from within configuration and tasks. | ||
|
||
- ``POE_ROOT``: path to the parent directory of the main tasks file (e.g. pyproject.toml). | ||
- ``POE_PWD``: the current working directory of the poe process (unless overriden programmatically). | ||
- ``POE_CONF_DIR``: the path to the parent directory of the config file that defines the running task or the :ref:`cwd option<Setting a working directory for included tasks>` set when including that config. | ||
- ``POE_ACTIVE``: identifies the active PoeExecutor, so that Poe the Poet can tell when it is running recursively. | ||
|
||
External Environment variables | ||
------------------------------ | ||
|
||
The following environment variables can be set to modify Poe the Poet's behavior. | ||
|
||
- ``POE_PROJECT_DIR``: used as the default value for the ``--directory`` global argument. | ||
- ``NO_COLOR``: disables ansi colors in output (unless the --ansi argument is provided). | ||
- ``POE_DEBUG``: can be set to ``1`` to enable printing debug messages to stdout. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
global_options | ||
tasks/index | ||
guides/index | ||
env_vars | ||
license | ||
|
||
************************** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters