aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/app.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-25 13:46:21 +0900
committerOphestra <cat@gensokyo.uk>2025-09-25 13:51:54 +0900
commitae2df2c450dd655b93a950124b6ab16e2b4d967b (patch)
tree849ab40049228e17891351d97097f8c9d0e18c10 /internal/app/app.go
parent6e3f34f2ecfe0f3cd024a6e73bf6560080feac53 (diff)
internal: remove sys package
This package is replaced by container/stub. Remove and replace it with unexported implementation for the upcoming test suite rewrite. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/app.go')
-rw-r--r--internal/app/app.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/internal/app/app.go b/internal/app/app.go
index 4ecf1cc0..b5331568 100644
--- a/internal/app/app.go
+++ b/internal/app/app.go
@@ -8,19 +8,17 @@ import (
"hakurei.app/hst"
"hakurei.app/internal/app/state"
- "hakurei.app/internal/sys"
)
// Main runs an app according to [hst.Config] and terminates. Main does not return.
-func Main(ctx context.Context, k sys.State, config *hst.Config) {
+func Main(ctx context.Context, config *hst.Config) {
var id state.ID
if err := state.NewAppID(&id); err != nil {
log.Fatal(err)
}
- var seal outcome
- seal.id = &stringPair[state.ID]{id, id.String()}
- if err := seal.finalise(ctx, k, config); err != nil {
+ seal := outcome{id: &stringPair[state.ID]{id, id.String()}, syscallDispatcher: direct{}}
+ if err := seal.finalise(ctx, config); err != nil {
printMessageError("cannot seal app:", err)
os.Exit(1)
}