80c76a0cba
Extracts the five domain types out of src/core/model.go into a new src/domain package (job.go, record.go, config.go). The unexported nextDue field is promoted to NextDue so it is accessible from core. All references across src/core, src/gui, and cmd/gosentry are updated to use domain.TypeName. src/core/model.go is reduced to a bare package declaration. Windows and Linux cross-compilation both pass; all tests remain green. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
563 B
Go
25 lines
563 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"gitea.mixdep.ru/mix/gosentry/src/domain"
|
|
"gitea.mixdep.ru/mix/gosentry/src/gui"
|
|
)
|
|
|
|
func main() {
|
|
// The executable entry point intentionally delegates all startup work to the
|
|
// GUI package. Keeping main small makes it easier to add platform-specific
|
|
// packaging later without mixing window setup, storage, and scheduler logic.
|
|
gui.Run(hasArgument(domain.StartInTrayArgument))
|
|
}
|
|
|
|
func hasArgument(argument string) bool {
|
|
for _, current := range os.Args[1:] {
|
|
if current == argument {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|