Second checkpoint

This commit is contained in:
2026-06-25 01:17:42 +05:00
parent 854ef138d0
commit 9cf791b789
90 changed files with 5504 additions and 988 deletions

24
internal/cli/serve.go Normal file
View File

@@ -0,0 +1,24 @@
package cli
import (
"gis/internal/app"
"github.com/spf13/cobra"
)
var serveCmd = &cobra.Command{
Use: "serve",
Short: "Run the HTTP server",
RunE: func(cmd *cobra.Command, args []string) error {
ctx, cancel := signalContext()
defer cancel()
application, err := app.New(ctx)
if err != nil {
return err
}
defer application.Close()
return application.Server().Run(ctx)
},
}