Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/matcha_ml/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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()