Skip to content

Conversation

brileyyyy
Copy link
Contributor

Description

Implements real-time queue monitoring functionality for the d8 system queue list command using the --watch/-w flag. The implementation replaces legacy system-dependent screen clearing with modern cross-platform terminal control using the termenv library.

Features

  • Real-time monitoring: Watch queue changes with automatic updates every second
  • Graceful shutdown: Clean exit with Ctrl+C signal handling
  • Backward compatibility: Existing commands work unchanged

Core Changes

  • Added --watch/-w flag support
  • Refactored queue operations
  • Modern terminal handling

Usage Examples

# View queues once (existing behavior)
d8 system queue list

# Watch queues in real-time (new feature)
d8 system queue list --watch
d8 system queue list -w

# Watch with other options
d8 system queue list --watch --output text
d8 system queue list -w --show-empty

@brileyyyy brileyyyy self-assigned this Sep 5, 2025
@ldmonster ldmonster added the enhancement New feature or request label Sep 8, 2025
@ldmonster ldmonster merged commit ef2c7b4 into main Sep 8, 2025
5 checks passed
@ldmonster ldmonster deleted the feat/d8-queue-watch-flag branch September 8, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants