From 47f4bd455e591b8dbc75aa5cb9fb9bc5bc7c3ef9 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 24 Sep 2025 13:55:33 +0200 Subject: [PATCH] added tests, add support for duration diff+add --- .gitignore | 2 + README.md | 24 +++++++- cmd/config.go | 17 +++++- cmd/root.go | 10 ---- cmd/times.go | 65 ++++++++++++++++++++ cmd/times_test.go | 148 ++++++++++++++++++++++++++++++++++++++++++++++ cmd/writer.go | 94 +++++++++++++++++++++++++++++ 7 files changed, 347 insertions(+), 13 deletions(-) create mode 100644 cmd/times_test.go create mode 100644 cmd/writer.go diff --git a/.gitignore b/.gitignore index aaadf73..37035c2 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ go.work.sum # Editor/IDE # .idea/ # .vscode/ + +ts diff --git a/README.md b/README.md index e7086a9..49e8cb9 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ generic cli timestamp parser and calculator tool -# Usage +## Usage ```default This is ts, a timestamp tool. @@ -21,6 +21,28 @@ Usage: ts