2024-05-15 18:42:38 +00:00
|
|
|
/*
|
|
|
|
Copyright © 2024 Brian Buller <brian@bullercodeworks.com>
|
|
|
|
*/
|
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
2024-05-29 20:43:59 +00:00
|
|
|
"git.bullercodeworks.com/brian/keepass-cli/models"
|
2024-05-15 18:42:38 +00:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
// testCmd represents the test command
|
|
|
|
var testCmd = &cobra.Command{
|
|
|
|
Use: "test",
|
|
|
|
Short: "Run Tests",
|
|
|
|
RunE: runTestCmd,
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
rootCmd.AddCommand(testCmd)
|
|
|
|
}
|
|
|
|
|
|
|
|
func runTestCmd(cmd *cobra.Command, args []string) error {
|
2024-05-29 20:43:59 +00:00
|
|
|
models.LoadFrequencies()
|
2024-05-15 18:42:38 +00:00
|
|
|
/*
|
|
|
|
var db *models.KeePassDB
|
|
|
|
pass, err := util.PromptUserForPassword("Master Password")
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
db, err = models.NewKeePassDB("/home/brbuller/Nextcloud/Apps/keys/keys.copy.kdbx", pass)
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
for _, v := range db.GetAllEntries() {
|
|
|
|
fmt.Println(v)
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
return nil
|
|
|
|
}
|