feat(access): archied access reset --org/--instance on the State Store host (archie-core-qc8p)

This commit is contained in:
sam committed 2026-09-26 15:23:32 +10:00
1 parent 020c6fb9d9
commit 2cb5ae3418
6 files changed
+196 -2

No files matched your search

+6
View File
@@ -2,6 +2,7 @@
package main
import (
"context"
"os"
"github.com/samcharles93/archie-core/internal/app/archied"
@@ -15,5 +16,10 @@ func main() {
if archied.IsSetupArgs(args) {
os.Exit(archied.RunSetup(args[1:], os.Stdin, os.Stdout, os.Stderr))
}
// The access recovery command runs before the daemon's flags are parsed:
// it is a State Store host operation, not a daemon run.
if archied.IsAccessResetArgs(args) {
os.Exit(archied.RunAccessReset(context.Background(), args[2:], os.Stderr))
}
os.Exit(archied.Run())
}