Skip to content

Conversation

Copy link

Copilot AI commented Nov 16, 2025

Users expect pup logs to behave like pm2 logs - showing historical logs then streaming new ones. Currently requires two separate commands (logs + monitor).

Changes

CLI Arguments (lib/cli/args.ts)

  • Added --no-follow and -f/--follow boolean flags

Logs Command (lib/cli/main.ts)

  • Display historical logs (existing behavior preserved)
  • Connect to REST API and stream new logs in real-time
  • Apply --id and --severity filters to both historical and streaming logs
  • Exit immediately if --no-follow specified

Tests (test/cli/args.test.ts)

  • Added arg parsing validation for new flags

Documentation

  • Updated README.md, docs/src/usage/basics.md, and changelog.md

Usage

# Default: historical + streaming
pup logs

# Historical only (old behavior)
pup logs --no-follow

# Stream filtered logs
pup logs --id my-app --severity error

Notes

  • Reuses existing streaming logic from monitor command
  • Backward compatible via --no-follow flag
  • All existing filters (--id, --severity, -n, --start, --end) continue to work

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.deno.land
    • Triggering command: curl -s REDACTED (dns block)
  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https (dns block)
  • jsr.io
    • Triggering command: /usr/local/bin/deno lint (dns block)
    • Triggering command: /usr/local/bin/deno test --trace-leaks --allow-read --allow-write --allow-env --allow-net --allow-sys --allow-run --coverage=cov_profile (dns block)
    • Triggering command: deno lint (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Find the next single best improvement for Pup


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Nov 16, 2025
Copilot AI and others added 2 commits November 16, 2025 00:24
Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
Copilot AI changed the title [WIP] Identify and implement best improvement for Pup Make pup logs stream by default with --no-follow flag Nov 16, 2025
Copilot AI requested a review from Hexagon November 16, 2025 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants