forked from mtusi2026/mtusi2026lab3
Перенести актуальную lab2 как базу lab3
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"go.uber.org/fx"
|
||||
)
|
||||
|
||||
// run dispatches the server command or the container healthcheck.
|
||||
func run(args []string) error {
|
||||
if len(args) == 0 {
|
||||
fx.New(CreateApp()).Run()
|
||||
return nil
|
||||
}
|
||||
if len(args) == 1 && args[0] == "healthcheck" {
|
||||
return healthcheck()
|
||||
}
|
||||
return fmt.Errorf("usage: server [healthcheck]")
|
||||
}
|
||||
Reference in New Issue
Block a user