A simple command line sleep timer for MacOS in Golang.
git clone https://github.com/orme292/Forcesleep.git
cd forcesleep/
ln -s $(pwd)/forcesleep /usr/local/bin/forcesleep
To put your Mac to sleep in 60 minutes:
forcesleep 60
To cancel:
forcesleep cancel