From 1e45ae2ea3497958b2ea6a20137955cfc3bbc964 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Wed, 11 Dec 2024 17:05:12 +0100 Subject: feat: Add UI/Handler login process It adds the whole workflow to store and handle login on both UI and handler level. With that the login information should be available at any point given the context. --- main.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index ab4aee9..797ebea 100644 --- a/main.go +++ b/main.go @@ -74,8 +74,7 @@ func run() error { return err } - // checking chroma configurationo - + // checking chroma configuration if _, ok := styles.Registry[configRepo.GetSyntaxHighlight()]; !ok { slog.Warn( "Invalid Syntax highlight selected", @@ -87,8 +86,13 @@ func run() error { // services gitService := service.NewGitService(configRepo) + authService := service.NewAuthService(configRepo) - handler, err := handler.MountHandler(gitService, configRepo) + handler, err := handler.MountHandler( + gitService, + authService, + configRepo, + ) if err != nil { return err } -- cgit v1.2.3