use strings for state flags

This commit is contained in:
Carlosokumu 2024-08-19 10:59:20 +03:00
parent 18af95c3ed
commit afe238003a
Signed by untrusted user: carlos
GPG Key ID: 7BD6BC8160A5C953

View File

@ -246,6 +246,12 @@ func main() {
ctx := context.Background() ctx := context.Background()
st := state.NewState(7) st := state.NewState(7)
st.UseDebug() st.UseDebug()
state.FlagDebugger.Register(USERFLAG_LANGUAGE_SET, "LANGUAGE_CHANGE")
state.FlagDebugger.Register(USERFLAG_ACCOUNT_CREATED,"ACCOUNT_CREATED")
state.FlagDebugger.Register(USERFLAG_ACCOUNT_SUCCESS,"ACCOUNT_SUCCESS")
state.FlagDebugger.Register(USERFLAG_ACCOUNT_PENDING,"ACCOUNT_PENDING")
rfs := resource.NewFsResource(scriptDir) rfs := resource.NewFsResource(scriptDir)
ca := cache.NewCache() ca := cache.NewCache()
cfg := engine.Config{ cfg := engine.Config{