You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Refactor 'internal/cron.go' into a 'CronScheduler' interface, and
'cmd/git-bundle-server/cron.go' (moved to 'cmd/utils/cron.go') into a
'CronHelper' interface. The former converts standalone functions previously
in the file into struct methods, while also moving much of the job
addition/update logic from 'cmd/git-bundle-server/cron.go' into a new
'AddJob()'. The 'CronHelper' has one method - 'SetCronSchedule()' - which
calls 'AddJob()' to set the daily 'update-all' schedule (used by the 'init'
and 'start' commands).
Both of these structs utilize the existing helper structures ('FileSystem',
'CommandExecutor', and 'UserProvider') to handle all system interaction. As
a result, they can both be unit tested in a future update.
Signed-off-by: Victoria Dye <[email protected]>
0 commit comments