Junie: TOTP flow update and db migrations.
This commit is contained in:
@@ -27,10 +27,17 @@ It currently provides the following across metacircular services:
|
||||
)
|
||||
|
||||
func Execute() error {
|
||||
// Setup commands and flags
|
||||
setupRootCommand()
|
||||
setupTOTPCommands()
|
||||
// The migrate command is already set up in its init function
|
||||
|
||||
// Execute the root command
|
||||
return rootCmd.Execute()
|
||||
}
|
||||
|
||||
func init() {
|
||||
// setupRootCommand initializes the root command and its flags
|
||||
func setupRootCommand() {
|
||||
cobra.OnInitialize(initConfig)
|
||||
|
||||
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.mcias.yaml)")
|
||||
|
||||
Reference in New Issue
Block a user