mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-07 05:52:15 +00:00
more cli interactivity, bugfix (#13360)
This commit is contained in:
@@ -129,3 +129,15 @@ def serve(
|
||||
port=port if port is not None else 8000,
|
||||
host=host_str,
|
||||
)
|
||||
|
||||
|
||||
@package_cli.command()
|
||||
def list(contains: Annotated[Optional[str], typer.Argument()] = None) -> None:
|
||||
"""
|
||||
List all or search for available templates.
|
||||
"""
|
||||
from langchain_cli.utils.github import list_packages
|
||||
|
||||
packages = list_packages(contains=contains)
|
||||
for package in packages:
|
||||
typer.echo(package)
|
||||
|
Reference in New Issue
Block a user