mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Refactor version cmd
This commit is contained in:
		
							parent
							
								
									4915902e04
								
							
						
					
					
						commit
						b97d6f71b1
					
				@ -8,7 +8,11 @@ import (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
var version = "dev"
 | 
					var version = "dev"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var VersionCmd = &cobra.Command{
 | 
					func init() {
 | 
				
			||||||
 | 
						rootCmd.AddCommand(versionCmd)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var versionCmd = &cobra.Command{
 | 
				
			||||||
	Use:   "version",
 | 
						Use:   "version",
 | 
				
			||||||
	Short: "Print the version.",
 | 
						Short: "Print the version.",
 | 
				
			||||||
	Long:  "The version of headscale.",
 | 
						Long:  "The version of headscale.",
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user