mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Be in silence when debug interpreter is run
This commit is contained in:
@ -66,11 +66,13 @@ def on_platformio_exception(e):
|
|||||||
|
|
||||||
def in_silence(ctx=None):
|
def in_silence(ctx=None):
|
||||||
ctx = ctx or app.get_session_var("command_ctx")
|
ctx = ctx or app.get_session_var("command_ctx")
|
||||||
assert ctx
|
if not ctx:
|
||||||
ctx_args = ctx.args or []
|
return True
|
||||||
return ctx_args and any([
|
return ctx.args and any([
|
||||||
ctx.args[0] == "upgrade", "--json-output" in ctx_args,
|
ctx.args[0] == "debug" and "--interpreter" in " ".join(ctx.args),
|
||||||
"--version" in ctx_args
|
ctx.args[0] == "upgrade",
|
||||||
|
"--json-output" in ctx.args,
|
||||||
|
"--version" in ctx.args
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user