extism / cli

The extism CLI is used to generate plugin scaffolding and manage Extism installations
BSD 3-Clause "New" or "Revised" License
21 stars 7 forks source link

Can one pass JSON function arguments via the CLI? #43

Closed mainrs closed 10 months ago

mainrs commented 10 months ago

I am using the Rust PDK and want to test my plugin function. Can I somehow pass a JSON string to it that the plugin function deserializes into my Deserialize struct?

mainrs commented 10 months ago

Ah, user error! It worked perfectly using -i '{"key":"value"}'.