Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ $(BATS):
@curl -sSL https://github.com/bats-core/bats-core/archive/$(BATS_VERSION).tar.gz | tar xz -C $(BATS_DIR) --strip-components=1
@chmod +x $(BATS_DIR)/bin/bats

.PHONY: install
install:
go install ./cmd/pomodoro

.PHONY: clean
clean:
rm -rf $(BATS_DIR) $(BINARY)
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ Or, if you have a [Go development environment](https://golang.org/doc/install):
go install github.com/open-pomodoro/openpomodoro-cli/cmd/pomodoro@latest
```

> If you already have another command named `pomodoro`, use `go get github.com/open-pomodoro/openpomodoro-cli` to install the `openpomodoro-cli` command.
Or, if you've cloned this repository:

```
make install
```

## Usage

Expand Down
8 changes: 8 additions & 0 deletions cmd/pomodoro/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ package main

import "github.com/open-pomodoro/openpomodoro-cli/cmd"

// Version is the version of this tool. It is set from LDFLAGS in the
// build process, or defaults to "dev" for development builds.
var Version = "dev"

func init() {
cmd.RootCmd.Version = Version
}

func main() {
cmd.Execute()
}