atosystem commented on a change in pull request #831:
URL: https://github.com/apache/submarine/pull/831#discussion_r768544597
##########
File path: submarine-sdk/pysubmarine/submarine/cli/experiment/command.py
##########
@@ -15,24 +15,115 @@
under the License.
"""
+import json
+from time import sleep
+
import click
+from rich.console import Console
+from rich.json import JSON as richJSON
+from rich.panel import Panel
+from rich.table import Table
+
+from submarine.experiment.api.experiment_client import ExperimentClient
+from submarine.experiment.exceptions import ApiException
+
+experimentClient = ExperimentClient("http://localhost:8080")
@click.command("experiment")
def list_experiment():
"""List experiments"""
- click.echo("list experiment!")
+ COLS_TO_SHOW = ["Name", "Id", "Tags", "Finished Time", "Created Time",
"Running Time", "Status"]
+ console = Console()
+ try:
+ thread = experimentClient.list_experiments_async()
+ with console.status("[bold green] Fetching Experiments..."):
+ while not thread.ready():
+ sleep(1)
Review comment:
OK!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]