] [-l]
Options:
-l --local Run commands locally instead of against a FaaSO server.
@@ -65,4 +65,6 @@ when .fetch("scale", false)
Faaso::Commands::Scale.new.run(ans, ans["FUNKO_NAME"].as(String), ans["SCALE"])
when .fetch("status", false)
Faaso::Commands::Status.new.run(ans, ans["FUNKO_NAME"].as(String))
+when .fetch("secret", false)
+ Faaso::Commands::Secret.new.run(ans, ans["FUNKO"].as(String), ans["SECRET"].as(String))
end
diff --git a/src/secrets.cr b/src/secrets.cr
index 8418144..3b19774 100644
--- a/src/secrets.cr
+++ b/src/secrets.cr
@@ -15,9 +15,9 @@ module Secrets
File.write(Path.new(funko_dir, name), value)
end
# Delete secrets not in the hash
- Dir.glob(Path.new(SECRET_PATH, "*")).each do |funko_dir|
+ Dir.glob("#{SECRET_PATH}/*").each do |funko_dir|
funko = File.basename(funko_dir)
- Dir.glob(Path.new(funko_dir, "*")).each do |secret_file|
+ Dir.glob("#{funko_dir}/*").each do |secret_file|
name = File.basename(secret_file)
unless SECRETS.has_key?("#{funko}-#{name}")
File.delete(secret_file)
diff --git a/src/views/secrets.ecr b/src/views/secrets.ecr
index d9899d4..3c57556 100644
--- a/src/views/secrets.ecr
+++ b/src/views/secrets.ecr
@@ -4,7 +4,7 @@
<%= f["name"] %> |
-
+
" src="bars.svg" class="htmx-indicator">
|