...
This commit is contained in:
@@ -71,21 +71,8 @@ fn set(o IPApi) ! {
|
||||
ipapi_default = o.name
|
||||
}
|
||||
|
||||
@[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(args_ PlayArgs) ! {
|
||||
mut args := args_
|
||||
|
||||
if args.heroscript == '' {
|
||||
args.heroscript = heroscript_default()!
|
||||
}
|
||||
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }
|
||||
pub fn play(mut plbook PlayBook) ! {
|
||||
|
||||
mut install_actions := plbook.find(filter: 'ipapi.configure')!
|
||||
if install_actions.len > 0 {
|
||||
|
||||
@@ -76,19 +76,9 @@ fn set_in_mem(o Jina) ! {
|
||||
jina_default = o.name
|
||||
}
|
||||
|
||||
@[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(args_ PlayArgs) ! {
|
||||
mut args := args_
|
||||
|
||||
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }
|
||||
|
||||
pub fn play(mut plbook PlayBook) ! {
|
||||
|
||||
mut install_actions := plbook.find(filter: 'jina.configure')!
|
||||
if install_actions.len > 0 {
|
||||
for install_action in install_actions {
|
||||
|
||||
@@ -74,21 +74,9 @@ fn set(o MailClient) ! {
|
||||
mailclient_default = o.name
|
||||
}
|
||||
|
||||
@[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(args_ PlayArgs) ! {
|
||||
mut args := args_
|
||||
|
||||
if args.heroscript == '' {
|
||||
args.heroscript = heroscript_default()!
|
||||
}
|
||||
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }
|
||||
pub fn play(mut plbook PlayBook) ! {
|
||||
|
||||
mut install_actions := plbook.find(filter: 'mailclient.configure')!
|
||||
if install_actions.len > 0 {
|
||||
|
||||
@@ -77,21 +77,8 @@ pub fn save(o MeilisearchClient) ! {
|
||||
context.hero_config_set('meilisearch', model.name, heroscript)!
|
||||
}
|
||||
|
||||
@[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(args_ PlayArgs) ! {
|
||||
mut model := args_
|
||||
|
||||
if model.heroscript == '' {
|
||||
model.heroscript = heroscript_default()!
|
||||
}
|
||||
mut plbook := model.plbook or { playbook.new(text: model.heroscript)! }
|
||||
pub fn play(mut plbook PlayBook) ! {
|
||||
|
||||
mut configure_actions := plbook.find(filter: 'meilisearch.configure')!
|
||||
if configure_actions.len > 0 {
|
||||
|
||||
@@ -75,18 +75,8 @@ fn set_in_mem(o Mycelium) ! {
|
||||
mycelium_default = o.name
|
||||
}
|
||||
|
||||
@[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(args_ PlayArgs) ! {
|
||||
mut args := args_
|
||||
|
||||
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }
|
||||
pub fn play(mut plbook PlayBook) ! {
|
||||
|
||||
mut install_actions := plbook.find(filter: 'mycelium.configure')!
|
||||
if install_actions.len > 0 {
|
||||
|
||||
@@ -78,18 +78,8 @@ fn set_in_mem(o MyceliumRPC) ! {
|
||||
mycelium_rpc_default = o.name
|
||||
}
|
||||
|
||||
@[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(args_ PlayArgs) ! {
|
||||
mut args := args_
|
||||
|
||||
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }
|
||||
pub fn play(mut plbook PlayBook) ! {
|
||||
|
||||
mut install_actions := plbook.find(filter: 'mycelium_rpc.configure')!
|
||||
if install_actions.len > 0 {
|
||||
|
||||
@@ -78,19 +78,8 @@ fn set_in_mem(o OpenAI) ! {
|
||||
openai_default = o.name
|
||||
}
|
||||
|
||||
@[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(args_ PlayArgs) ! {
|
||||
mut args := args_
|
||||
|
||||
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }
|
||||
|
||||
pub fn play(mut plbook PlayBook) ! {
|
||||
mut install_actions := plbook.find(filter: 'openai.configure')!
|
||||
if install_actions.len > 0 {
|
||||
for install_action in install_actions {
|
||||
|
||||
@@ -78,21 +78,8 @@ pub fn save(o PostgresClient) ! {
|
||||
context.hero_config_set('postgresql_client', o.name, heroscript)!
|
||||
}
|
||||
|
||||
@[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(args_ PlayArgs) ! {
|
||||
mut model := args_
|
||||
|
||||
if model.heroscript == '' {
|
||||
model.heroscript = heroscript_default()!
|
||||
}
|
||||
mut plbook := model.plbook or { playbook.new(text: model.heroscript)! }
|
||||
pub fn play(mut plbook PlayBook) ! {
|
||||
|
||||
mut configure_actions := plbook.find(filter: 'postgresql_client.configure')!
|
||||
if configure_actions.len > 0 {
|
||||
|
||||
@@ -76,18 +76,7 @@ fn set_in_mem(o QDrantClient) ! {
|
||||
qdrant_default = o.name
|
||||
}
|
||||
|
||||
@[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(args_ PlayArgs) ! {
|
||||
mut args := args_
|
||||
|
||||
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }
|
||||
pub fn play(mut plbook PlayBook) ! {
|
||||
|
||||
mut install_actions := plbook.find(filter: 'qdrant.configure')!
|
||||
if install_actions.len > 0 {
|
||||
|
||||
@@ -67,28 +67,8 @@ fn set(o RCloneClient) ! {
|
||||
rclone_global['default'] = &o2
|
||||
}
|
||||
|
||||
@[params]
|
||||
pub struct PlayArgs {
|
||||
pub mut:
|
||||
name string = 'default'
|
||||
heroscript string // if filled in then plbook will be made out of it
|
||||
plbook ?playbook.PlayBook
|
||||
reset bool
|
||||
|
||||
start bool
|
||||
stop bool
|
||||
restart bool
|
||||
delete bool
|
||||
configure bool // make sure there is at least one installed
|
||||
}
|
||||
|
||||
pub fn play(args_ PlayArgs) ! {
|
||||
mut args := args_
|
||||
|
||||
if args.heroscript == '' {
|
||||
args.heroscript = heroscript_default()!
|
||||
}
|
||||
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }
|
||||
pub fn play(mut plbook PlayBook) ! {
|
||||
|
||||
mut install_actions := plbook.find(filter: 'rclone.configure')!
|
||||
if install_actions.len > 0 {
|
||||
|
||||
@@ -71,21 +71,8 @@ fn set(o RunPod) ! {
|
||||
runpod_default = o.name
|
||||
}
|
||||
|
||||
@[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(args_ PlayArgs) ! {
|
||||
mut args := args_
|
||||
|
||||
if args.heroscript == '' {
|
||||
args.heroscript = heroscript_default()!
|
||||
}
|
||||
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }
|
||||
pub fn play(mut plbook PlayBook) ! {
|
||||
|
||||
mut install_actions := plbook.find(filter: 'runpod.configure')!
|
||||
if install_actions.len > 0 {
|
||||
|
||||
@@ -42,7 +42,7 @@ fn (mut p Personalizations) set_subject(s string) {
|
||||
p.subject = s
|
||||
}
|
||||
|
||||
// add_headers adds a playbook of key/value pairs to specify handling instructions for your email.
|
||||
// add_headers adds a plbook of key/value pairs to specify handling instructions for your email.
|
||||
// if some of the new headers already existed, their values are overwritten.
|
||||
fn (mut p Personalizations) add_headers(new_headers map[string]string) {
|
||||
p.headers or {
|
||||
@@ -55,7 +55,7 @@ fn (mut p Personalizations) add_headers(new_headers map[string]string) {
|
||||
}
|
||||
}
|
||||
|
||||
// add_substitution adds a playbook of key/value pairs to allow you to insert data without using Dynamic Transactional Templates.
|
||||
// add_substitution adds a plbook of key/value pairs to allow you to insert data without using Dynamic Transactional Templates.
|
||||
// if some of the keys already existed, their values are overwritten.
|
||||
fn (mut p Personalizations) add_substitution(new_subs map[string]string) {
|
||||
p.substitutions or {
|
||||
@@ -68,7 +68,7 @@ fn (mut p Personalizations) add_substitution(new_subs map[string]string) {
|
||||
}
|
||||
}
|
||||
|
||||
// add_dynamic_template_data adds a playbook of key/value pairs to dynamic template data.
|
||||
// add_dynamic_template_data adds a plbook of key/value pairs to dynamic template data.
|
||||
// Dynamic template data is available using Handlebars syntax in Dynamic Transactional Templates.
|
||||
// if some of the keys already existed, their values are overwritten.
|
||||
fn (mut p Personalizations) add_dynamic_template_data(new_dynamic_template_data map[string]string) {
|
||||
@@ -82,7 +82,7 @@ fn (mut p Personalizations) add_dynamic_template_data(new_dynamic_template_data
|
||||
}
|
||||
}
|
||||
|
||||
// add_custom_args adds a playbook of key/value pairs to custom_args.
|
||||
// add_custom_args adds a plbook of key/value pairs to custom_args.
|
||||
// custom args are values that are specific to this personalization that will be carried along with the email and its activity data.
|
||||
// if some of the keys already existed, their values are overwritten.
|
||||
fn (mut p Personalizations) add_custom_args(new_custom_args map[string]string) {
|
||||
|
||||
@@ -71,21 +71,8 @@ fn set(o VastAI) ! {
|
||||
vastai_default = o.name
|
||||
}
|
||||
|
||||
@[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(args_ PlayArgs) ! {
|
||||
mut args := args_
|
||||
|
||||
if args.heroscript == '' {
|
||||
args.heroscript = heroscript_default()!
|
||||
}
|
||||
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }
|
||||
pub fn play(mut plbook PlayBook) ! {
|
||||
|
||||
mut install_actions := plbook.find(filter: 'vastai.configure')!
|
||||
if install_actions.len > 0 {
|
||||
|
||||
@@ -71,21 +71,8 @@ fn set(o WireGuard) ! {
|
||||
wireguard_default = o.name
|
||||
}
|
||||
|
||||
@[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(args_ PlayArgs) ! {
|
||||
mut args := args_
|
||||
|
||||
if args.heroscript == '' {
|
||||
args.heroscript = heroscript_default()!
|
||||
}
|
||||
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }
|
||||
pub fn play(mut plbook PlayBook) ! {
|
||||
|
||||
mut install_actions := plbook.find(filter: 'wireguard.configure')!
|
||||
if install_actions.len > 0 {
|
||||
|
||||
@@ -78,19 +78,8 @@ fn set_in_mem(o ZinitRPC) ! {
|
||||
zinit_rpc_default = o.name
|
||||
}
|
||||
|
||||
@[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(args_ PlayArgs) ! {
|
||||
mut args := args_
|
||||
|
||||
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }
|
||||
|
||||
pub fn play(mut plbook PlayBook) ! {
|
||||
mut install_actions := plbook.find(filter: 'zinit_rpc.configure')!
|
||||
if install_actions.len > 0 {
|
||||
for install_action in install_actions {
|
||||
|
||||
Reference in New Issue
Block a user