createdb

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cli.Command{
	Name:    "createdb",
	Usage:   "Create a new kdbx databse",
	Aliases: []string{"c"},
	Description: `createdb command create a new kdbx database with few sample entries

syntax:
	kpcli \
		--keyfile <keyfile> \
		--name <xyx.kdbx> \
		--pass {password to encrypt/open kdbx} \
		createdb

Example:
	kpcli \
		--keyfile ./tmp/master-db.key \
		--pass 'super_secret' \
		--db ./tmp/master-db.kdbx \
		createdb
	`,

	Action: runCreate,
	Flags:  []cli.Flag{},
}

Functions

func NewDB

func NewDB(opt Options) (*db, error)

NewDB creates and returns a new kdbx database

func ReadPassword

func ReadPassword(item string) string

Types

type Options

type Options struct {
	Pass     string
	Key      string
	Database string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL