Skip to content

Commit e38f8a4

Browse files
author
Spencer Brower
committed
fix: Updated to work with new go configuration.
1 parent 41f7656 commit e38f8a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mod.nu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def "open db" [] {
4848
} else {
4949
# Open the db
5050
let dec = mktemp -p ~/.envr;
51-
let priv_key = ((envr config show).priv_key | path expand);
51+
let priv_key = ((envr config show).keys.0.private | path expand);
5252
age -d -i $priv_key ($db_path | path expand) | save -f $dec
5353
stor import -f $dec
5454
rm $dec
@@ -68,7 +68,7 @@ def "create-db" []: nothing -> any {
6868
, contents text not null
6969
);'
7070

71-
let pub_key = ((envr config show).pub_key | path expand);
71+
let pub_key = ((envr config show).keys.0.public | path expand);
7272
age -R $pub_key $dec | save -f $db_path
7373

7474
stor import -f $dec
@@ -81,7 +81,7 @@ def "close db" [] {
8181
stor export --file-name $dec;
8282

8383
# Encrypt the file
84-
let pub_key = ((envr config show).pub_key | path expand);
84+
let pub_key = ((envr config show).keys.0.public | path expand);
8585
age -R $pub_key $dec | save -f $db_path
8686

8787
rm $dec

0 commit comments

Comments
 (0)