Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
733acead
Unverified
Commit
733acead
authored
Jan 13, 2025
by
Jakob Görgen
Browse files
symphony/cli: added command to print output lines without following
parent
ef6700c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
symphony/cli/simbricks/cli/commands/runs.py
symphony/cli/simbricks/cli/commands/runs.py
+12
-0
No files found.
symphony/cli/simbricks/cli/commands/runs.py
View file @
733acead
...
...
@@ -21,6 +21,7 @@
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import
json
import
rich
from
pathlib
import
Path
import
simbricks.utils.load_mod
as
load_mod
from
typer
import
Typer
,
Argument
,
Option
...
...
@@ -67,6 +68,17 @@ async def follow(run_id: int):
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
()
@
async_cli
()
async
def
delete
(
run_id
:
int
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment