aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/app.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-29 04:32:43 +0900
committerOphestra <cat@gensokyo.uk>2025-10-29 04:33:13 +0900
commita0b4e47acc228e48165966d8e139277b8f6f450e (patch)
treed363a6781536ce946aa445271ca1d3df587e6031 /internal/app/app.go
parenta52f7038e5a607dd0901244abb791c96deaf9c2d (diff)
internal/outcome: rename from app
This is less ambiguous, and more accurately describes the purpose of the package. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/app.go')
-rw-r--r--internal/app/app.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/internal/app/app.go b/internal/app/app.go
deleted file mode 100644
index 03608517..00000000
--- a/internal/app/app.go
+++ /dev/null
@@ -1,28 +0,0 @@
-// Package app implements high-level hakurei container behaviour.
-package app
-
-import (
- "context"
- "log"
- "os"
-
- "hakurei.app/hst"
- "hakurei.app/message"
-)
-
-// Main runs an app according to [hst.Config] and terminates. Main does not return.
-func Main(ctx context.Context, msg message.Msg, config *hst.Config) {
- var id hst.ID
- if err := hst.NewInstanceID(&id); err != nil {
- log.Fatal(err.Error())
- }
-
- seal := outcome{syscallDispatcher: direct{msg}}
- if err := seal.finalise(ctx, msg, &id, config); err != nil {
- printMessageError("cannot seal app:", err)
- os.Exit(1)
- }
-
- seal.main(msg)
- panic("unreachable")
-}