updated secrets enum

This commit is contained in:
ari committed 2026-05-25 15:37:38 -04:00
1 parent d3b711046c
commit 205ad0dd5b
2 files changed
+8 -2

No files matched your search

+5
View File
@@ -92,6 +92,11 @@ export def "skyg hm" [action: string@hm-actions, profile: string = "ari"] {
home-manager $action --flake $".#($profile)"
}
# List all secret names
export def "skyg secrets" [] {
secret-names
}
# Decrypt a secret from secrets/ folder
export def "skyg decrypt" [secret: string@secret-names] {
cd $REPO_ROOT
+3 -2
View File
@@ -1,3 +1,5 @@
const REPO_ROOT = path self | path dirname | path dirname | path dirname
export def hm-actions [] {
["switch", "build"]
}
@@ -6,9 +8,8 @@ export def remote-cmds [] {
["test", "dry-activate", "run", "switch", "build"]
}
const REPO_ROOT = path self | path dirname | path dirname | path dirname
export def secret-names [] {
cd $REPO_ROOT
ls secrets/*.age | get name | each { |f| $f | path basename | str replace ".age" "" }
glob secrets/*.age | each { |f| $f | path basename | str replace ".age" "" }
}