17_kcontext draft
This commit is contained in:
@@ -20,6 +20,8 @@ if [ -f "$RBASH_HOME/keystore.secret" ]; then
|
||||
_AUTH_SECRET=$( cat "$RBASH_HOME/keystore.secret" )
|
||||
fi
|
||||
|
||||
complete -W "add del get list query update search secret sync" kstore
|
||||
|
||||
function kstore {
|
||||
case $1 in
|
||||
add) shift; kstore-add "$@" ;;
|
||||
@@ -260,6 +262,7 @@ function kstore-get {
|
||||
$_SQLITE -list "$_AUTH_DB" "SELECT ( data ) FROM store WHERE $_cond;" | kstore-dec
|
||||
else
|
||||
echo "\"$1\" not found" >&2
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -330,5 +333,5 @@ function kstore-list {
|
||||
}
|
||||
|
||||
function kstore-query {
|
||||
sqlite3 "$_AUTH_DB" "$@"
|
||||
$_SQLITE "$_AUTH_DB" "$@"
|
||||
}
|
||||
|
Reference in New Issue
Block a user