feat: Add version output

This commit is contained in:
HikariKnight 2024-03-30 14:45:54 +01:00
parent ee45d29e6f
commit 55bfb36522
5 changed files with 27 additions and 7 deletions

View file

@ -5,6 +5,8 @@ import (
"os"
"github.com/HikariKnight/quickpassthrough/internal/configs"
"github.com/HikariKnight/quickpassthrough/internal/logger"
"github.com/HikariKnight/quickpassthrough/internal/version"
"github.com/HikariKnight/quickpassthrough/pkg/command"
"github.com/HikariKnight/quickpassthrough/pkg/menu"
"github.com/gookit/color"
@ -17,7 +19,8 @@ func Welcome() {
// Write title
title := color.New(color.BgHiBlue, color.White, color.Bold)
title.Println("Welcome to Quickpassthrough!")
title.Printf("Welcome to Quickpassthrough %s!\n", version.Version)
logger.Printf("Welcome to Quickpassthrough %s!\n", version.Version)
// Write welcome message
color.Print(