support native mode in planoai logs command (#807)

This commit is contained in:
Adil Hafeez 2026-03-05 18:34:06 -08:00 committed by GitHub
parent 065328e11c
commit b9f01c8471
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 51 additions and 1 deletions

View file

@ -483,9 +483,21 @@ def generate_prompt_targets(file):
is_flag=True,
)
@click.option("--follow", help="Follow the logs", is_flag=True)
def logs(debug, follow):
@click.option(
"--docker",
default=False,
help="Stream logs from a Docker-based Plano instance.",
is_flag=True,
)
def logs(debug, follow, docker):
"""Stream logs from access logs services."""
if not docker:
from planoai.native_runner import native_logs
native_logs(debug=debug, follow=follow)
return
plano_process = None
try:
if debug: