You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone, I might be going the wrong way about this but I am trying to have my web-app get launched with command line arguments. Specifically, I'm looking for a way to specify the API's URL to use, so that you could do something like this:
> trunk serve --open # default API URL, hardcoded in the binary> trunk serve --open -- --api-url="woopdidoop.gov"
I can't for the life of me figure out how to get trunk to pass these arguments to the underlying web-app. I've looked at the various hooks and the trunk.toml example file, but nothing struck me. Am I missing something obvious?
It seems that it should be possible, considering that clap works with WASM or that the WASI specification allows it. Is that not the preferred way to go about it?
If it isn't implemented yet, I'd love to try and help wherever I can should you choose to add that :)
Thanks a lot for working on this project, it's been a blast to use and made Rust + WASM super easy to do even for a complete web noob like me.
The text was updated successfully, but these errors were encountered:
Hi everyone, I might be going the wrong way about this but I am trying to have my web-app get launched with command line arguments. Specifically, I'm looking for a way to specify the API's URL to use, so that you could do something like this:
I can't for the life of me figure out how to get
trunk
to pass these arguments to the underlying web-app. I've looked at the various hooks and thetrunk.toml
example file, but nothing struck me. Am I missing something obvious?It seems that it should be possible, considering that
clap
works with WASM or that the WASI specification allows it. Is that not the preferred way to go about it?If it isn't implemented yet, I'd love to try and help wherever I can should you choose to add that :)
Thanks a lot for working on this project, it's been a blast to use and made Rust + WASM super easy to do even for a complete web noob like me.
The text was updated successfully, but these errors were encountered: