mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-11-03 15:45:51 +00:00 
			
		
		
		
	refactor: use a boostrap service to bootstrap the app
This commit is contained in:
		@@ -2,7 +2,7 @@ package cmd
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"tinyauth/internal/constants"
 | 
			
		||||
	"tinyauth/internal/config"
 | 
			
		||||
 | 
			
		||||
	"github.com/spf13/cobra"
 | 
			
		||||
)
 | 
			
		||||
@@ -12,9 +12,9 @@ var versionCmd = &cobra.Command{
 | 
			
		||||
	Short: "Print the version number of Tinyauth",
 | 
			
		||||
	Long:  `All software has versions. This is Tinyauth's`,
 | 
			
		||||
	Run: func(cmd *cobra.Command, args []string) {
 | 
			
		||||
		fmt.Printf("Version: %s\n", constants.Version)
 | 
			
		||||
		fmt.Printf("Commit Hash: %s\n", constants.CommitHash)
 | 
			
		||||
		fmt.Printf("Build Timestamp: %s\n", constants.BuildTimestamp)
 | 
			
		||||
		fmt.Printf("Version: %s\n", config.Version)
 | 
			
		||||
		fmt.Printf("Commit Hash: %s\n", config.CommitHash)
 | 
			
		||||
		fmt.Printf("Build Timestamp: %s\n", config.BuildTimestamp)
 | 
			
		||||
	},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user