feat(archie): add container runtime, migrate command, secret files, and proxy egress

This commit is contained in:
sam committed 2026-11-27 20:36:52 +11:00
1 parent 7630a14705
commit 86b89a5957
13 files changed
+803 -61

No files matched your search

+5 -1
View File
@@ -26,7 +26,7 @@ func run() error {
newIdentity := flag.Bool("new-age-identity", false, "print a new age identity for age_identity and exit")
showVersion := buildinfo.RegisterVersionFlag("archie")
flag.Usage = func() {
_, _ = fmt.Fprintln(flag.CommandLine.Output(), "usage: archie [flags]\n archie openapi print the API's OpenAPI document")
_, _ = fmt.Fprintln(flag.CommandLine.Output(), "usage: archie [flags]\n archie migrate apply database migrations and runtime grants\n archie openapi print the API's OpenAPI document")
flag.PrintDefaults()
}
flag.Parse()
@@ -36,6 +36,10 @@ func run() error {
}
switch flag.Arg(0) {
case "":
case "migrate":
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer stop()
return archie.Migrate(ctx, *configPath)
case "openapi":
doc, err := archie.Document()
if err != nil {