Initial Commit

This commit is contained in:
2024-05-15 13:42:38 -05:00
parent 1be02c96ff
commit 9aa99fdb91
14 changed files with 799 additions and 232 deletions

37
cmd/test.go Normal file
View File

@@ -0,0 +1,37 @@
/*
Copyright © 2024 Brian Buller <brian@bullercodeworks.com>
*/
package cmd
import (
"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 {
/*
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
}