Initial Commit

This commit is contained in:
Stavros
2025-01-19 13:40:06 +02:00
commit c0e085ea10
34 changed files with 3195 additions and 0 deletions

24
cmd/root.go Normal file
View File

@@ -0,0 +1,24 @@
package cmd
import (
"os"
"tinyauth/internal/api"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "tinyauth",
Short: "A dead simple login page for your apps.",
Long: `Tinyauth is an extremely simple traefik forward-auth login screen that makes securing your apps easy.`,
Run: func(cmd *cobra.Command, args []string) {
api.Run()
},
}
func Execute() {
err := rootCmd.Execute()
if err != nil {
os.Exit(1)
}
}