...
This commit is contained in:
@@ -25,9 +25,9 @@ pub mut:
|
||||
// your checking & initialization code if needed
|
||||
fn obj_init(mycfg_ ERPNext) !ERPNext {
|
||||
mut mycfg := mycfg_
|
||||
if mycfg.password == '' && mycfg.secret == '' {
|
||||
return error('password or secret needs to be filled in for ${mycfg.name}')
|
||||
}
|
||||
// if mycfg.password == '' && mycfg.secret == '' {
|
||||
// return error('password or secret needs to be filled in for ${mycfg.name}')
|
||||
// }
|
||||
return mycfg
|
||||
}
|
||||
|
||||
|
||||
@@ -43,9 +43,9 @@ pub mut:
|
||||
//your checking & initialization code if needed
|
||||
fn obj_init(mycfg_ ${args.classname})!${args.classname}{
|
||||
mut mycfg:=mycfg_
|
||||
if mycfg.password == '' && mycfg.secret == '' {
|
||||
return error('password or secret needs to be filled in for ??{mycfg.name}')
|
||||
}
|
||||
//if mycfg.password == '' && mycfg.secret == '' {
|
||||
// return error('password or secret needs to be filled in for ??{mycfg.name}')
|
||||
//}
|
||||
return mycfg
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
module playcmds
|
||||
|
||||
import incubaid.herolib.core.playbook
|
||||
import incubaid.herolib.apps.biz.erpnext
|
||||
import incubaid.herolib.clients.giteaclient
|
||||
import incubaid.herolib.clients.ipapi
|
||||
import incubaid.herolib.clients.jina
|
||||
@@ -54,6 +55,7 @@ pub fn run_all(args_ PlayArgs) ! {
|
||||
playbook.new(text: args.heroscript, path: args.heroscript_path)!
|
||||
}
|
||||
|
||||
erpnext.play(mut plbook)!
|
||||
giteaclient.play(mut plbook)!
|
||||
ipapi.play(mut plbook)!
|
||||
jina.play(mut plbook)!
|
||||
|
||||
Reference in New Issue
Block a user