fix state update, save/load

This commit is contained in:
mudler
2024-04-04 16:58:25 +02:00
parent 9173156e40
commit b4fd482f66
7 changed files with 151 additions and 23 deletions

View File

@@ -19,6 +19,9 @@ type options struct {
randomIdentity bool
userActions Actions
enableHUD, standaloneJob bool
debugMode bool
characterfile string
statefile string
context context.Context
permanentGoal string
}
@@ -54,6 +57,11 @@ var EnableHUD = func(o *options) error {
return nil
}
var DebugMode = func(o *options) error {
o.debugMode = true
return nil
}
// EnableStandaloneJob is an option to enable the agent
// to run jobs in the background automatically
var EnableStandaloneJob = func(o *options) error {