mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-11-04 08:05:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			310 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			310 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package cmd
 | 
						|
 | 
						|
import (
 | 
						|
	"tinyauth/cmd/totp/generate"
 | 
						|
 | 
						|
	"github.com/spf13/cobra"
 | 
						|
)
 | 
						|
 | 
						|
func TotpCmd() *cobra.Command {
 | 
						|
	totpCmd := &cobra.Command{
 | 
						|
		Use:   "totp",
 | 
						|
		Short: "Totp utilities",
 | 
						|
		Long:  `Utilities for creating and verifying totp codes.`,
 | 
						|
	}
 | 
						|
	totpCmd.AddCommand(generate.GenerateCmd)
 | 
						|
	return totpCmd
 | 
						|
}
 |