Closed brandondrew closed 4 months ago
Thank you! Will take a look today
I suspect something is wrong with the plugin as the CLI is also showing this behavior. Will see if i can figure out why.
[I] ben@dylibso ~> extism call count_vowels.wasm count_vowels --input="Yellow World" --config='{"vowels": "aeiouyAEIOUY"}'
{"count":3,"total":3,"vowels":"aeiouAEIOU"}
Nevermind, I think I invoked it incorrectly:
extism call https://github.com/extism/plugins/releases/latest/download/count_vowels.wasm count_vowels --input="Yello World" --config vowels=aeiouyAEIOUY
{"count":4,"total":4,"vowels":"aeiouyAEIOUY"}
Just realized in case someone gets lost, i should have used --set-config
extism call https://github.com/extism/plugins/releases/latest/download/count_vowels.wasm count_vowels
--input="Yello World" --set-config='{"vowels": "aeiouyAEIOUY"}'
{"count":4,"total":4,"vowels":"aeiouyAEIOUY"}
extism call --help | grep config
--config stringArray Set config values, should be in KEY=VALUE format
--set-config config Create config object using JSON, this will be merged with any config arguments
Sorry I'm just now getting back to this. Pulled out the debugger and seems there was some bad logic involved in the ruby code https://github.com/extism/ruby-sdk/pull/23
Will get this merged and release as 1.0.1
Deployed as 1.0.1
Please give it a try if you don't mind @brandondrew
Deployed as 1.0.1
Please give it a try if you don't mind @brandondrew
Yes, that works now! Thanks!
The code in
irb
says it all:The "count" should be 4:
Y
,e
,o
, ando
, but we can see that the configuration forvowels
was not accepted.