This commit is contained in:
2025-07-30 15:21:10 +02:00
parent 2bc2c07114
commit 685a58aa14
48 changed files with 60 additions and 428 deletions

View File

@@ -23,19 +23,7 @@ pub fn get(args_ ArgsGet) !&Grafana {
return &Grafana{}
}
@[params]
pub struct PlayArgs {
pub mut:
heroscript string // if filled in then plbook will be made out of it
plbook ?playbook.PlayBook
reset bool
}
pub fn play(mut plbook PlayBook) ! {
mut args := args_
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }
mut other_actions := plbook.find(filter: 'grafana.')!
for other_action in other_actions {
if other_action.name in ['destroy', 'install', 'build'] {