#!/usr/local/src/gridfire/keepassxc_cmd2/keepassxc_cmd2.py
# -*- mode: sh; tab-width: 8; encoding: utf-8-unix -*-

set debug true
cli generate
cli diceware -- -q --words 3

get_kdbx /var/tmp/test4.kdbx
cli db-info
get_pass password
get_keyfile /var/tmp/test4.key

# no arguments
cli db-info
cli ls
cli help

shell rm -f /var/tmp/test4.xml
shell cp /var/tmp/test4.kdbx  /var/tmp/cli4.kdbx 

get_kdbx /var/tmp/cli4.kdbx
get_keyfile /var/tmp/test4.key
get_pass password

cli db-info

cli mkdir email
#  --url http://goo.gl
# cli add  email/gmail -u foo --generate --length 8
cli add  email/gmail
cli show email/gmail
cli show -s email/gmail
    	      
# set sPassword
set sKeyfile
set sKdbx

help
#help cli
#help kpy
