Unverified Commit 733acead authored by Jakob Görgen's avatar Jakob Görgen
Browse files

symphony/cli: added command to print output lines without following

parent ef6700c5
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import json import json
import rich
from pathlib import Path from pathlib import Path
import simbricks.utils.load_mod as load_mod import simbricks.utils.load_mod as load_mod
from typer import Typer, Argument, Option from typer import Typer, Argument, Option
...@@ -67,6 +68,17 @@ async def follow(run_id: int): ...@@ -67,6 +68,17 @@ async def follow(run_id: int):
await opus_base.follow_run(run_id=run_id) await opus_base.follow_run(run_id=run_id)
@app.command()
@async_cli()
async def run_console(run_id: int):
"""Print a runs console completely."""
console = rich.console.Console()
output = await client_provider.simbricks_client.get_run_console(rid=run_id)
with console.status(f"[bold green]Waiting for run {run_id} to finish...") as _:
for line in output:
console.log(line["simulator"] + ":" + line["output"])
@app.command() @app.command()
@async_cli() @async_cli()
async def delete(run_id: int): async def delete(run_id: int):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment