keepass-cli/cmd/test.go

43 lines
789 B
Go
Raw Normal View History

2024-05-15 18:42:38 +00:00
/*
Copyright © 2024 Brian Buller <brian@bullercodeworks.com>
*/
package cmd
import (
2024-10-09 12:41:51 +00:00
"fmt"
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)
}
2024-10-09 12:41:51 +00:00
func runTestCmd(_ *cobra.Command, args []string) error {
2024-05-29 20:43:59 +00:00
models.LoadFrequencies()
2024-10-09 12:41:51 +00:00
fmt.Println(args)
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
}