bin/rails: WASI args support
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with bin/rails and compare it with the referenced template at src/templates/default/bin/rails, then inspect the WASI parameter setup in src/templates/default/lib/rails.js. Run the Wasm executable with command arguments and determine why the WASI params are not reaching Ruby. Done means Rails CLI code can use normal arguments without a copied version using a custom args variable.
Written by the indexing model from the issue text.
Description
Currently, we have to copy-paste the Rails CLI code to replace ARGV calls with a custom args variable: https://github.com/palkan/tutorialkit-rb-playground/blob/f429ea727335a2db9c8500828fcf90c32ac79ad0/src/templates/default/bin/rails#L12
In theory, it should be possible to pass command args to the Wasm executable through the WASI params: https://github.com/palkan/tutorialkit-rb-playground/blob/f429ea727335a2db9c8500828fcf90c32ac79ad0/src/templates/default/lib/rails.js#L25
For some yet unknown reason that doesn't work. Let's figure this out (could it be a ruby,wasm issue?).
- Dominant language
- Ruby
- Stars
- 36
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from evilmartians/rails-tutorial
-
Add Image component Openenhancement tutorialkit
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
enhancement tutorialkit
Difficulty 4/5 3-5 days Newbie friendliness 38/100
All issues in evilmartians/rails-tutorial
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
TheOdinProject/curriculum#31408 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
notch8/utk_knapsack#148 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Homebrew/homebrew-cask#288729 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100