GithubHelp home page GithubHelp logo

timergo's Introduction

TimerGo

A simple timer for the command line written in go.

Go has become my favorite language of late. Previously I had written this simple command line timer in python, but wanted to write it in go instead, so I did!

Just a note, I use linux. These have never been intended to run on windows. If you'd like to fix it though, feel free to send a pull request.

And another note. The notification is supposed to beep. On my system, I haven't been able to get it to work. So I have no idea if it will work on other systems or not, but you may get an annoying beep. I have no idea how loud/annoying it is...So just be aware if you try running it.

To install

$ go install github.com/unclassedpenguin/timergo@latest

Usage

To just use a simple timer that will run infinitely

$ timergo

To do a simple time with a limit, that will pop up a desktop notification at the end of the limit:

$ timergo 30

This would run a 30 second timer. The time increment as of now is only accepted as seconds.


There are a few other options as well. You can use -b to count in binary. If you want to set a time limit as well as use binary, you must use the -t option.

$ timergo -b -t 30

This would run a 30 second timer, and the output would be in binary.


The last command is -c. This is the "command" option, and allows you to run a command after the timer is reached. This option requires -t.

$ timergo -t 30 -c "echo 'hello'"

This would run the command echo hello after the 30 seconds is up.

Todo

  • Add ability to take time as minutes/hours at least. things like "5m" or "1h"

timergo's People

Contributors

unclassedpenguin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.