last-minute

command module
v0.0.0-...-7e4af11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 7 Imported by: 0

README

last-minute

Tail last minute of a log file. Usage:

$ tail -F main.log | lastmin --seconds 5

Every time tail feeds another line, terminal screen is cleared, and most recent n seconds (or minutes) of logs are printed.

Demo

Usage

Usage: lastmin --seconds=INT --minutes=INT [flags]

Flags:
  -h, --help                 Show context-sensitive help.
  -s, --seconds=INT
  -m, --minutes=INT
  -t, --show-tick            Show current time.
  -r, --refresh-seconds=2    How often output is refreshed.

Install

go install github.com/denarced/last-minute@latest

Documentation

Overview

Package main implements the main CLI.

Directories

Path Synopsis
lib
lastmin
Package lastmin.
Package lastmin.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL