command
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jan 17, 2025
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.