basic runner format; write a MAIN function

This commit is contained in:
wrynegade committed 2024-02-06 14:06:44 -07:00
1 parent a200c1eb22
commit fcf492c661
50 files changed
+298 -522

No files matched your search

+1 -10
View File
@@ -1,20 +1,11 @@
#!/bin/zsh
DEPENDENCIES+=()
REQUIRED_ENV+=()
use cloud/aws/rds
use db/postgres
CHECK_ENVIRONMENT
#####################################################################
LOAD_BACKUP() {
MAIN() {
local DB_HOST DB_PORT DB_NAME DB_USER DB_PASS
RDS__GET_DATABASE_CREDENTIALS $@ || return 1
PG_RESTORE
}
#####################################################################
LOAD_BACKUP $@