webassembly.sh icon indicating copy to clipboard operation
webassembly.sh copied to clipboard

Improvements for @wasmer/wasm-terminal fetchCommand

Open torch2424 opened this issue 6 years ago • 2 comments

https://github.com/wasmerio/webassembly.sh/pull/38 Introuduced some awesome changes for the wapm query. Would be great if we could have the following for fetchCommand:

fetchCommand('command-name', {
version: '0.1.0',
returnAllBinaries: true
})

torch2424 avatar Oct 08 '19 18:10 torch2424

Also, pass more from getCommand into fetchCommand for analytics https://github.com/wasmerio/wasmer-js/blob/d9ef94b8d1bbeadd7963ecd437ca208a93ad76bf/static/index.tsx#L32

torch2424 avatar Oct 10 '19 22:10 torch2424

const fetchCommand = async (options: CommandOptions): Promise<WASICommand> => {
   blablabla
}

torch2424 avatar Oct 10 '19 22:10 torch2424