INNER CODE UNIT · Go

run

kimdre/doco-cd · cmd/doco-cd/main.go:143

func run() error {
	ctx, rootCancel := context.WithCancel(context.Background())

	defer rootCancel()

	// Set the default log level to debug
	log := logger.New(slog.LevelDebug)

	// Get the application configuration
	c, err := app.GetConfig()
	if err != nil {
		log.Critical("failed to get application configuration", logger.ErrAttr(err))
		return err
	}

	notifier, err := notification.New(notification.Config{
		APIURL:                string(c.AppriseApiURL),
		NotifyURLs:            c.AppriseNotifyUrls,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…