You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`PUP_FILTER`|`--jq` flag is set | The jq expression, verbatim |
113
114
|`PUP_AUTO_APPROVE`|`--yes` flag or agent mode |`true`|
114
115
|`PUP_READ_ONLY`| Read-only mode |`true`|
115
116
|`PUP_AGENT_MODE`| Agent mode |`true`|
@@ -118,7 +119,7 @@ Pup refreshes the OAuth2 token if needed before passing it to the extension, so
118
119
119
120
Variables not active in the current session are explicitly removed from the child environment to prevent stale credentials from leaking through the parent shell.
120
121
121
-
The `PUP_OUTPUT`, `PUP_AGENT_MODE`, `PUP_READ_ONLY`, and `PUP_AUTO_APPROVE` variables are read back by a child `pup` process. So if your extension shells out to `pup` (see below), those nested calls automatically inherit the formatand mode the user selected on the parent command.
122
+
The `PUP_OUTPUT`, `PUP_FILTER`, `PUP_AGENT_MODE`, `PUP_READ_ONLY`, and `PUP_AUTO_APPROVE` variables are read back by a child `pup` process. So if your extension shells out to `pup` (see below), those nested calls automatically inherit the format, `--jq` filter, and mode the user selected on the parent command. An extension that prints its own JSON directly — rather than delegating to a nested `pup` call — still needs to read `PUP_FILTER` itself and apply the jq expression if it wants to honor `--jq`.
0 commit comments