mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-28 04:35:40 +00:00
* wip * feat: finalize totp gen code * refactor: split login screen and forms * feat: add totp logic and ui * refactor: make totp pending expiry time fixed * refactor: skip all checks when disable continue is enabled * fix: fix cli not exiting on invalid input
23 lines
397 B
Go
23 lines
397 B
Go
package cmd
|
|
|
|
import (
|
|
"tinyauth/cmd/totp/generate"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func TotpCmd() *cobra.Command {
|
|
// Create the totp command
|
|
totpCmd := &cobra.Command{
|
|
Use: "totp",
|
|
Short: "Totp utilities",
|
|
Long: `Utilities for creating and verifying totp codes.`,
|
|
}
|
|
|
|
// Add the generate command
|
|
totpCmd.AddCommand(generate.GenerateCmd)
|
|
|
|
// Return the totp command
|
|
return totpCmd
|
|
}
|