m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-17 17:43:37 -05:00
Commit Graph

83 Commits

Author SHA1 Message Date
Sergio
3cfa4771eb Probably a bad attempt at fixing a huge bug in multiple servers 2025-02-27 21:41:23 +02:00
Sergio
4d691dd5fa Serialize current and local values to avoid having to recompute them when fetching API data. Also fixes the bug where the versions aren't displayed in the CLI output for remote servers 2025-02-21 17:09:00 +02:00
Sergio
685219ea62 Add option to refresh all servers 2025-02-21 17:05:32 +02:00
Sergio
f020ac0906 Fix clippy lint (this code has been there since... forever, why hasn't this been detected) 2025-02-21 16:02:03 +02:00
Sergio
05d4c7c630 I think you can guess 2025-02-18 17:47:14 +02:00
Sergio
cf22ec300f Fix a few more clippy lints 2025-02-18 16:58:25 +02:00
Sergio
5b428dbf67 Fix some clippy lints 2025-02-18 16:57:08 +02:00
Sergio
5656003058 Fix small bug in API 2025-02-15 13:02:33 +02:00
Sergio
550fb955a3 Refactor logging, create context for passing around between functions instead of config 2025-02-14 19:24:35 +02:00
Sergio
6ae95bf83b Update API and improve CLI output 2025-02-14 18:28:18 +02:00
Sergio
0314ef2f05 Add multiple server support to Liquid UI, CSS fixes 2025-02-07 17:25:06 +02:00
Sergio
b5aa0309ee Tiny improvement to version handling, add a new debug log 2025-02-01 10:28:17 +02:00
Sergio
4bbb53cd67 Show unknown when image tag does not exist 2025-01-15 17:09:19 +02:00
Sergio
3ac6fb57e9 Fix crash when checking a remote tag and it is the latest available 2025-01-15 16:44:26 +02:00
Sergio
0c10134829 Fix #55 2025-01-05 13:42:15 +02:00
Sergio
c0c7f7c0e9 Finished basic functionality for multiple servers in the backend.
No special CLI or Liquid support yet and also no refresh support
2025-01-03 16:10:17 +02:00
Sergio
aeeffaccba Get updates from multiple servers (part one: get the data) 2025-01-02 20:11:31 +02:00
Sergio
9d628e3ab2 Implement refresh schedule 2025-01-02 14:37:33 +02:00
Sergio
fe779c9c4e Probably meaningless change of some Option<&String>s to Option<&str>s 2025-01-02 13:00:32 +02:00
Sergio
84609d5189 Various small changes and optimizations related to timekeeping, logging and JSON handling. Binary size shrunk by 0.2 MB! 2025-01-02 12:48:35 +02:00
Sergio
ded441cf75 Add support for connecting with both unix and http docker sockets. Hasn't been tested yet. 2025-01-02 12:47:52 +02:00
Sergio
0a8295fff4 Improve semver version handling (decrease false positives)
Some checks are pending
Deploy github pages / build (push) Waiting to run
Deploy github pages / deploy (push) Blocked by required conditions
2025-01-01 15:25:49 +02:00
Sergio
9c8e6ccdea Work on liquid a bit, format code 2025-01-01 14:29:17 +02:00
Sergio
4f1075b2b2 Add error message to API response 2024-12-20 17:00:41 +02:00
Sergio
eadda5f776 Add servers option (no-op at the moment) 2024-12-07 17:18:36 +02:00
Sergio
622b156eed Add agent mode, fix config version bug 2024-12-07 17:08:34 +02:00
Sergio
dca19b5ae2 Whoops wrong server versioning 2024-12-07 17:02:21 +02:00
Sergio
f6ac43aac0 Change API versioning to match Cup version 2024-12-07 16:30:07 +02:00
Sergio
e5e60c4abc Add requirement for version key to new config 2024-12-07 16:28:06 +02:00
Sergio
33a72c8c0d Change config, add schema 2024-12-07 16:21:01 +02:00
Sergio
e544ef6ca5 Slightly optimize version regex 2024-12-06 17:47:31 +02:00
Sergio
ce08e00bb4 Replace reference regex with homemade logic. Can we go faster? 2024-12-05 21:07:13 +02:00
Sergio
6a77b85141 Remove used async keyword from 2 functions in Image 2024-12-05 20:23:07 +02:00
Sergio
215e88ae0f Switch to serde for config parsing 2024-12-05 20:22:26 +02:00
Sergio
178acfb2f6 Add debug option to CLI 2024-12-05 18:13:53 +02:00
Sergio
59894343de Add error message when user doesn't specify command 2024-12-04 20:00:42 +02:00
Sergio
61bc60493f This is the last time I promise 2024-12-04 19:52:51 +02:00
Sergio
be7d55d126 Remove some more clone usage 2024-12-04 19:45:12 +02:00
Sergio
36a3a13c04 Remove some clone usage 2024-12-04 19:44:04 +02:00
Sergio
d85fadfb39 Test split 2024-11-21 19:26:17 +02:00
Sergio
0f95be26dc Remove usage of panic 2024-11-17 19:54:07 +02:00
Sergio
0b7e064980 Update sort_update_vec function, fix lints and enable testing in CI 2024-11-16 14:58:16 +02:00
Sergio
9e9bb78db7 Fix broken tests 2024-11-16 13:14:52 +02:00
Sergio
88d346b480 Support checking for version updates for images that aren't available locally 2024-11-16 13:05:46 +02:00
Sergio
4519c534a1 Move usage of get_images_from_docker_daemon to get_updates 2024-11-16 12:38:00 +02:00
Sergio
6b83f51749 Improve a little code section in registry.rs 2024-11-16 12:25:10 +02:00
Sergio
0c3f293fa8 Clippy 2024-11-15 13:31:42 +02:00
Sergio
d94abecf35 Nearly complete versioning support. Fixed old bugs where not all tags were fetched. 2024-11-15 13:21:30 +02:00
Sergio
c11b5e6432 OMG WE CAN DO SEMVER FOR THE CLI AND THE RESULTS LOOK CORRECT 2024-11-01 21:39:15 +02:00
Sergio
3ed79e69bd Add semver regex and function to match tags (preparing to implement semver checking) 2024-10-27 18:09:26 +02:00