Skip to content

bin/rails: WASI args support #3

@palkan

Description

@palkan

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?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigationruby.wasmRelated to ruby.wasm project (rbwasm, js, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions