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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ go.work.sum
# .vscode/

.DS_Store
scripts/release.sh
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ leaks:
.PHONY: test
test:
go test ./... -v

.PHONY: release
bash scripts/release.sh
git push --atomic --follow-tags
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

var rootCmd = &cobra.Command{
Use: "timetreat",
Version: "0.1.0",
Version: "0.1.1-dev",
Short: "Treat yourself to some tasty time tracking.",
Long: ` _ _ _ _
| | (_) | | | |
Expand Down
4 changes: 2 additions & 2 deletions cmd/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ The project name and description can have a total length of 150 utf-8 chars.
formattedStringsStyled.PrintfWarning("empty project name")
} else if curTask.Project == "" && stopProject != "" {
curTask.Project = stopProject
} else {
} else if curTask.Project != "" && stopProject != "" {
formattedStringsStyled.PrintfWarning("project name exists: %s", curTask.Project)
answer, err := AskForInputInOptions("[i] ignore or [o] override?", []string{"i", "o"})
CheckErr(err)
if answer == "o" {
curTask.Project = stopProject
}
}
} // else if curTask.Project != "" && stopProject == "" {}

// description
if curTask.Description == "" && stopDescription == "" {
Expand Down