diff --git a/src/matcha_ml/cli/cli.py b/src/matcha_ml/cli/cli.py index 4488eeca..7c6d7bc1 100644 --- a/src/matcha_ml/cli/cli.py +++ b/src/matcha_ml/cli/cli.py @@ -19,6 +19,7 @@ hide_sensitive_in_output, ) from matcha_ml.cli.ui.status_message_builders import ( + build_resource_confirmation, build_resources_msg_content, build_status, build_step_success_status, @@ -328,5 +329,16 @@ def remove( raise typer.Exit() +@stack_app.command(help="List all modules in the current Matcha stack.") +def list() -> None: + """List all modules in the current Matcha stack.""" + resources = build_resources_msg_content(stack=MatchaConfigService.get_stack()) + resource_msg = build_resource_confirmation( + header="The current Matcha stack contains", + resources=resources, + ) + print_status(resource_msg) + + if __name__ == "__main__": app()