mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-10-21 07:21:44 +02:00
`--verbose` printed each subprocess command followed by everything piped to its stdin, which can hold credentials. It now prints only the command line, so `langgraph up --verbose`, `langgraph build` and `langgraph deploy --verbose` no longer show the generated compose file or Dockerfile (`langgraph dockerfile` still writes the Dockerfile out).
18 lines
423 B
Python
18 lines
423 B
Python
import sys
|
|
|
|
from langgraph_cli.exec import subp_exec
|
|
|
|
|
|
async def test_verbose_prints_command_but_not_stdin(capsys):
|
|
await subp_exec(
|
|
sys.executable,
|
|
"-c",
|
|
"import sys; sys.stdin.read()",
|
|
input="registry-push-token\n",
|
|
verbose=True,
|
|
)
|
|
|
|
out = capsys.readouterr().out
|
|
assert out.startswith(f"+ {sys.executable} -c"), out
|
|
assert "registry-push-token" not in out, out
|