go-caffeine

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 9 Imported by: 0

README

go-caffeine

A simple command-line utility to prevent your system from sleeping.

Features

  • Prevents system sleep/screen saver
  • Cross-platform support (Windows, macOS, Linux)
  • Optional duration timer
  • Visual spinner indicator

Usage

Run indefinitely:

go-caffeine

Run for specific duration:

go-caffeine -t 1h    # Run for 1 hour
go-caffeine -t 30m   # Run for 30 minutes

Check version:

go-caffeine version

Installation

go install github.com/yourusername/go-caffeine@latest

Building from source

git clone https://github.com/yourusername/go-caffeine.git
cd go-caffeine
go build

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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