Hello,
I have an issue with the function ‘import’, it canno’t take variables as arguments :
[ansible@que-1-hap] > foreach lib in=[/file find name~".lib.rsc"] do={ put [/file get $lib name] }
convertCase.lib.rsc
diffDate.lib.rsc
getUserContact.lib.rsc
netwatchAction.lib.rsc
sendSms.lib.rsc
sendTelegram.lib.rsc
[ansible@que-1-hap] > foreach lib in=[/file find name~".lib.rsc"] do={ put [/file get $lib name]; import $lib }
convertCase.lib.rsc
cannot open import file, file does not exist
[ansible@que-1-hap] > import
convertCase.lib.rsc diffDate.lib.rsc getUserContact.lib.rsc last-export.rsc netwatchAction.lib.rsc sendSms.lib.rsc sendTelegram.lib.rsc from-line verbose file-name
[ansible@que-1-hap] >
Context : I’m making ‘libraires’ (global functions), so I made a bash script to deploy them (the ‘foreach’ line as in the exemple above)
It must be a new feature to develop =)
Have a nice day !