Commit Graph

109 Commits

Author SHA1 Message Date
Martin (Schretzi) Fuchsluger d5c41a921a Moving since/until parsing to helpers and add Range to it 2025-02-14 20:03:35 +01:00
Martin (Schretzi) Fuchsluger 4169bbc325 Add options to make project and tasks mandatory and set default project 2025-02-14 19:53:49 +01:00
Martin (Schretzi) Fuchsluger c004fe48e2 Add option to truncate seconds / round down to full minute 2025-02-14 19:50:40 +01:00
Martin (Schretzi) Fuchsluger b74af5cb55 Putting relative times in Context if wanted
Putting relative times in Context if wanted
2025-02-14 06:56:18 +01:00
Martin (Schretzi) Fuchsluger 99ae174876 EntryCmd to use the same Timeparsing from helper 2025-02-14 06:41:38 +01:00
Martin (Schretzi) Fuchsluger 9e95349acd Adding dateparse in helper and support more date/time formats 2025-02-14 06:39:45 +01:00
Martin (Schretzi) Fuchsluger a2da1daa2c Opening Viper for all formats 2025-02-13 21:15:25 +01:00
Martin (Schretzi) Fuchsluger f1326734e5 Deduplicate initDatabase, move to initConfig in Rootcmd 2025-02-08 19:15:10 +01:00
Martin (Schretzi) Fuchsluger 2082bac4fa Reformat EntryCmd.go - replace tab 2025-02-08 19:07:43 +01:00
Martin (Schretzi) Fuchsluger efe3d69be5 Add Viper and Configfile (zeit.yaml) 2025-02-08 17:59:20 +01:00
Jurica Bacurin d45981d1d0 fix error on creation of the very first task 2023-03-30 23:36:23 +02:00
マリウス 9a05dc1034 Added dateparse parsing, updated deps 2023-01-14 21:55:41 -05:00
Nulo 83790d0f18 Use now to parse since and until dates 2022-09-04 17:08:23 -03:00
Miltiadis Kallianis 6486fb7f3b covert indentation tabs to spaces 2022-09-02 22:27:55 +02:00
Miltiadis Kallianis 219695f795 cleanUp: use tx.Get for getting values from DB
tx.AscendKeys can be used for collecting multiple keys, values.
In our case we only collect one key, value therefore use tx.Get
2022-09-02 13:18:58 +02:00
マリウス 8bc5014ab3 Implemented list --only-tasks flag 2022-04-14 19:11:44 -05:00
マリウス 6783e5d082 Fixed indentation 2022-02-28 11:14:27 -05:00
Derek Stevens dcd613622e add missing case in entry and fix unit formatting; ref #13 2021-12-18 21:41:20 -07:00
Derek Stevens ba824325bc use HH:MM format by default everywhere
add --decimal option to toggle HH.ZZ format; ref #13
2021-12-18 21:33:12 -07:00
マリウス 0247fe0859 Implemented appendProjectIDToTask flag 2021-07-05 19:43:31 -05:00
Derek Stevens 0f742c4a50 entry.GetDuration() fix for negative duration total with ongoing task; ref #11 2021-06-13 22:21:50 -06:00
マリウス 84047e834e Fixed #9, implemented zeit to be the default format for import/export 2021-02-07 14:47:31 -04:00
マリウス 822ded9dfc Implemented #6, added --no-colors flag for disabling coloured output 2021-02-07 14:38:14 -04:00
マリウス 6e0ecbb007 Fixed #7, treating entry.Finished for running entries as time.Now() 2021-02-07 14:22:16 -04:00
マリウス 31014917ef Merge branch 'main' of github.com:mrusme/zeit 2021-02-07 14:02:40 -04:00
マリウス abc041381e Fixed #2, removed initial check for existing entries, adding a separate one 2021-02-07 14:02:32 -04:00
Keith Hughitt baf6b83d53 Fixed an issue resulting --begin time adjustments leading to 0AD date 2021-02-06 15:09:32 -05:00
マリウス 7f376a1b3c Removed Printf 2020-10-23 20:51:58 +01:00
マリウス 109494bb0c Fixed naming 2020-10-23 20:51:51 +01:00
マリウス 2d7dbddf5c Implemented projects/tasks structure listing; this implements #1 partially 2020-10-21 00:05:39 +01:00
マリウス 0d71ab2d34 Updated GetGitLog to only include own commits 2020-10-18 00:24:29 +01:00
マリウス 3f23b28662 Refactored entry update 2020-10-17 22:49:29 +01:00
マリウス 94f062e036 Implemented entry command 2020-10-17 21:14:49 +01:00
マリウス dbe231f710 Implemented UpdateEntry 2020-10-17 21:14:34 +01:00
マリウス 4f301a4ce4 Implemented error handling for "over-tracking" 2020-10-17 21:14:22 +01:00
マリウス 6732d9634a Added full output to entry.GetOutput 2020-10-17 21:14:00 +01:00
マリウス 2ecc0a70ca More explicit error 2020-10-17 21:13:27 +01:00
マリウス 2f0218f567 Further cleanup / refactoring 2020-10-17 20:32:35 +01:00
マリウス b924131c81 Cleaned up file names 2020-10-17 20:30:41 +01:00
マリウス 35cb75088e Implemented total output 2020-10-17 20:19:05 +01:00
マリウス fda944ab17 Consolidated list/export further, extended list command 2020-10-17 20:06:25 +01:00
マリウス 86662a5a37 Fixed title for stats in case the weeks cross months 2020-10-17 19:53:13 +01:00
マリウス 631343388d Refactored import/export 2020-10-17 15:53:11 +01:00
マリウス df06d63fa8 Implemented GetFilteredEntries and extended export command 2020-10-17 15:32:41 +01:00
マリウス 64a17e4db9 Specified time.RFC3339 as Format 2020-10-17 15:32:07 +01:00
マリウス 1bae202468 Implemented export command 2020-10-17 14:59:44 +01:00
マリウス 5dd03146b2 Extended finish command with notes and Git log import 2020-10-17 13:17:58 +01:00
マリウス b50277d9ce Implemented task command 2020-10-17 13:17:38 +01:00
マリウス 9d6670c965 Implemented UpdateTask and GetTask 2020-10-17 13:17:28 +01:00
マリウス 56ffde16fe Added notes to Entry and track command 2020-10-17 13:17:01 +01:00