Skip to content

schmiddim/go-pomodoro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-pomodoro

go-pomodoro is a command-line application that helps you manage your time using the Pomodoro Technique. You can set the duration of your work intervals and the application will notify you when it's time to take a break. It also integrates with an API to track your accomplishments.

Installation

Go install

 go install github.com/schmiddim/go-pomodoro@latest

Compile

To install go-pomodoro, you need to have Go installed on your machine. Once you have Go installed, you can clone this repository and build the application:

git clone https://github.com/schmiddim/go-pomodoro.git 
cd go-pomodoro 
go build -o go-pomodoro

Usage

You can run go-pomodoro with the following command:

./go-pomodoro --time=<minutes> --habitId=<habitid>

Where:

  • <minutes> is the duration of the timer in minutes.
  • <habitId> is the ID of the habit you are tracking.

For example:

./go-pomodoro --time=30 --habitId=16

Environment Variables

go-pomodoro uses the following environment variables:

  • POMODORO_API_KEY: Your API key for the accomplishments tracking API.
  • POMODORO_ENDPOINT: The endpoint for the accomplishments tracking API.

You can set these environment variables in your shell:

export POMODORO_API_KEY=your_api_key export POMODORO_ENDPOINT=http://localhost:8080/api/v1

Create a quick Release

TAG=0.0.22 ;git commit -am "Debug GH Action"; git tag  $TAG; git push origin $TAG

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages