Commit Graph

106 Commits

Author SHA1 Message Date
Slug-Boi 1f7e571fb9 fix: env var test updated for panic
fix: recover in test
2025-06-03 20:02:04 +02:00
Slug-Boi ff9b8739cb refactor: change config to be optional and create default state 2025-06-03 19:47:04 +02:00
Slug-Boi 97dac5169a test: try to fix config file not being loaded 2025-06-03 17:39:17 +02:00
Slug-Boi cbcd5ae1d1 fix: add config to cmd tests 2025-06-03 17:36:17 +02:00
Slug-Boi bbce5d3fab test: add config to tests 2025-06-03 17:29:25 +02:00
Slug-Boi 45d4c6e8b4 refactor: add env var for config location 2025-06-03 17:28:37 +02:00
Slug-Boi eac0e43023 fix: if author file was not set empty string not caught 2025-06-03 17:28:09 +02:00
Slug-Boi 2686f32184 refactor: make sure lists are ordered correctly and add configurable scopes 2025-04-20 22:16:21 +02:00
Slug-Boi f89d399e17 refactor: add config load to author func 2025-04-20 22:13:45 +02:00
Slug-Boi 3e1ba8d965 feat: add config utils functions to handle config fetching and updating 2025-04-20 22:07:12 +02:00
Slug-Boi 3574d442a6 chore: remove test file 2025-04-19 20:48:40 +02:00
Slug-Boi 1d51c55bc5 refactor: remove fetch call 2025-04-19 20:48:20 +02:00
Slug-Boi c1b9e35851 chore: change to viper 2025-04-19 20:48:06 +02:00
Slug-Boi 619066f329 test: add scope tests 2025-04-18 23:47:22 +02:00
Slug-Boi 6d72b93ac2 chore: remove unused code 2025-04-18 23:47:22 +02:00
Slug-Boi ac1e59b7ee test: change test commit file to actual file not temp file and use git add to add it 2025-04-18 23:47:22 +02:00
Slug-Boi c7a9d3429d test: add scope and set scope to be local in all tests 2025-04-18 23:47:22 +02:00
Slug-Boi b608a52aa6 feat: scopes added to tui list model 2025-04-18 23:47:22 +02:00
Slug-Boi 39a5005a39 refactor: rename all model to Model 2025-04-18 23:47:22 +02:00
Slug-Boi 8b3c5ab539 feat: util function to fetch all users that have commited to a repo 2025-04-18 23:47:22 +02:00
Slug-Boi 68cc7d8281 refactor: run define git users on launch 2025-04-18 23:47:22 +02:00
Slug-Boi be98ca2f7c feat: define git users in the program 2025-04-18 23:47:22 +02:00
Slug-Boi 04a5cd3bd9 test: more gh tui tests 2025-04-16 13:26:40 +02:00
Slug-Boi a0880457f7 fix: more nil pointers 2025-04-16 13:26:28 +02:00
Slug-Boi a84843c48a fix: return wrong model when gh tui open 2025-04-16 13:18:44 +02:00
Slug-Boi 59674fe823 test: add some tui tests for the new gh command 2025-04-16 13:16:14 +02:00
Slug-Boi 0fe4624854 fix: nil pointer 2025-04-16 13:16:02 +02:00
Slug-Boi c24c277fb1 fix: remember to toggle off tempAuthorAdd when quitting 2025-04-11 16:05:13 +02:00
Slug-Boi 951dbee1d0 test: loop the correct amount of items 2025-04-11 15:54:22 +02:00
Slug-Boi 9b367ba86e test: create temp file when testing the git commit command 2025-04-11 15:49:02 +02:00
Slug-Boi acf756dae1 fix: clear screen to remove ghost elements 2025-04-11 15:37:51 +02:00
Slug-Boi b41ec63fde fix: fix tui wrap around issue with temp author 2025-04-11 15:37:51 +02:00
Slug-Boi 53419329a0 refactor: no args means tui opens 2025-04-11 15:37:51 +02:00
Slug-Boi 53fef652b1 refactor: edit existing tui elements to add new gh add tui component 2025-04-11 15:37:51 +02:00
Slug-Boi 4dd972c355 feat: add gh add tui component 2025-04-11 15:37:50 +02:00
Slug-Boi 3e4c01c8bd test: fix linux not panic on authorfile test 2025-04-10 13:31:01 +02:00
Slug-Boi 5cd8ee63b6 test: increase test coverage of tui to around 70% 2025-04-10 12:43:24 +02:00
Slug-Boi e7656ae4e0 test: extend tui test coverage 2025-04-10 12:17:08 +02:00
Slug-Boi e8933bc764 refactor: use panic 2025-04-10 12:16:57 +02:00
Slug-Boi 1d432f61ed refactor: longname and remove emptystring on errors 2025-04-10 12:16:48 +02:00
Slug-Boi 7cededcdab test: final extend to utils test coverage 2025-04-09 22:36:05 +02:00
Slug-Boi ee14a9f141 refactor: add error handler 2025-04-09 22:35:52 +02:00
Slug-Boi c8923525ea refactor(depen_injec): add dependency injection to CheckAuthorFile and change to panics
remove comment
2025-04-09 22:35:33 +02:00
Slug-Boi 73020870a1 test: add all flag to hopefully fix ci workflow 2025-04-09 21:17:47 +02:00
Slug-Boi 5123e63d9f test: even more extended test coverage 2025-04-09 21:01:44 +02:00
Slug-Boi aafba935c3 refactor: error handling and add flags to git push command 2025-04-09 21:01:19 +02:00
Slug-Boi 81adc7e2c3 refactor: move error handling 2025-04-09 21:01:00 +02:00
Slug-Boi 4696f58bf5 refactor: add error returns and flags 2025-04-09 21:00:51 +02:00
Slug-Boi 33d93c834d refactor: panic and rename variable plus move an error so it can actually trigger 2025-04-09 21:00:30 +02:00
Slug-Boi 3db2ca2566 test: extend test coverage by adding more utils tests 2025-04-09 20:01:17 +02:00