Files
herolib/lib/installers/sysadmintools/actrunner/actrunner_model.v
Mahmoud Emad fc993a95d7 feat: simplify actrunner installer
- Remove unnecessary dependencies and simplify the actrunner installation process.
2025-02-16 07:19:03 +00:00

37 lines
793 B
V

module actrunner
import freeflowuniverse.herolib.data.encoderhero
pub const version = '0.2.11'
const singleton = true
const default = true
// THIS THE THE SOURCE OF THE INFORMATION OF THIS FILE, HERE WE HAVE THE CONFIG OBJECT CONFIGURED AND MODELLED
@[heap]
pub struct ActRunner {
pub mut:
name string = 'default'
}
// your checking & initialization code if needed
fn obj_init(mycfg_ ActRunner) !ActRunner {
mut mycfg := mycfg_
return mycfg
}
// called before start if done
fn configure() ! {
// mut installer := get()!
}
/////////////NORMALLY NO NEED TO TOUCH
pub fn heroscript_dumps(obj ActRunner) !string {
return encoderhero.encode[ActRunner](obj)!
}
pub fn heroscript_loads(heroscript string) !ActRunner {
mut obj := encoderhero.decode[ActRunner](heroscript)!
return obj
}