MCPcopy
hub / github.com/tinyauthapp/tinyauth / runCmd

Function runCmd

cmd/tinyauth/tinyauth.go:111–126  ·  view source on GitHub ↗
(cfg config.Config)

Source from the content-addressed store, hash-verified

109}
110
111func runCmd(cfg config.Config) error {
112 logger := tlog.NewLogger(cfg.Log)
113 logger.Init()
114
115 tlog.App.Info().Str("version", config.Version).Msg("Starting tinyauth")
116
117 app := bootstrap.NewBootstrapApp(cfg)
118
119 err := app.Setup()
120
121 if err != nil {
122 return fmt.Errorf("failed to bootstrap app: %w", err)
123 }
124
125 return nil
126}
127
128type themeBase struct{}
129

Callers 1

mainFunction · 0.85

Calls 4

InitMethod · 0.95
SetupMethod · 0.95
NewLoggerFunction · 0.92
NewBootstrapAppFunction · 0.92

Tested by

no test coverage detected