watch echocat
winget install --id=echocat.watch -e
Like the unix one but works cross-platform without magic. π
Watch: A Cross-Platform Command Monitor
Primary Purpose:
Watch is a versatile tool designed for repeatedly executing commands at specified intervals, akin to the Unix watch command but engineered for cross-platform compatibility and independence from shell magic.
Key Features:
-
Cross-Platform Functionality:
Runs seamlessly across Linux, macOS, and Windows, ensuring consistent behavior regardless of the operating system. -
Customizable Execution Intervals:
Adjust the interval between command executions using durations like seconds (e.g., 5s) or minutes (e.g., 1m). -
Exit Codes Control:
Specify exit codes that determine whether to continue, stop, or handle specific outcomes, enhancing workflow automation. -
Terminal Reset Option:
Choose to reset the terminal before each command execution for a clean output environment. -
Time Formatting Flexibility:
Format timestamps according to your needs using Go's time package formatting options. -
Colored Output Customization:
Control color usage with options like "auto," "always," or "never" for consistent output appearance across environments. -
Header and Footer Templates:
Customize the information displayed before and after each command execution using Go's text/template syntax.
Audience & Benefit:
Ideal for developers, system administrators, and CLI enthusiasts who require a reliable tool for monitoring commands in real-time. Watch provides cross-platform portability, enabling consistent command execution and output customization across environments. Its ability to handle exit codes and reset terminals makes it an essential tool for automating tasks and maintaining efficient workflows.