mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-11-03 07:35:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			463 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			463 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package cmd
 | 
						|
 | 
						|
import (
 | 
						|
	"tinyauth/cmd/user/create"
 | 
						|
	"tinyauth/cmd/user/verify"
 | 
						|
 | 
						|
	"github.com/spf13/cobra"
 | 
						|
)
 | 
						|
 | 
						|
func UserCmd() *cobra.Command {
 | 
						|
	// Create the user command
 | 
						|
	userCmd := &cobra.Command{
 | 
						|
		Use:   "user",
 | 
						|
		Short: "User utilities",
 | 
						|
		Long:  `Utilities for creating and verifying tinyauth compatible users.`,
 | 
						|
	}
 | 
						|
 | 
						|
	// Add subcommands
 | 
						|
	userCmd.AddCommand(create.CreateCmd)
 | 
						|
	userCmd.AddCommand(verify.VerifyCmd)
 | 
						|
 | 
						|
	// Return the user command
 | 
						|
	return userCmd
 | 
						|
}
 |