Commit Graph

725 Commits

Author SHA1 Message Date
Felix Schütt
1f59a5c81e Run packages via specifying directory instead of package name 2022-10-19 14:44:12 +02:00
Felix Schütt
f761ddc4af Make python/python run 2022-10-18 21:04:38 +02:00
Felix Schütt
5b165b634b Fix execution of python/python with wrong directory mapping 2022-10-18 20:16:41 +02:00
Felix Schütt
3dcd2a6ef8 Add support for specifying registry in CLI arg 2022-10-18 19:57:01 +02:00
Felix Schütt
fd5fa25a91 Do not auto-download packages if the execution failed 2022-10-18 18:33:25 +02:00
Felix Schütt
1a398c4adc Fix more wasmer run UX bugs 2022-10-18 10:08:25 +02:00
Felix Schütt
0f59d59eab Fix "make lint" 2022-10-18 09:25:50 +02:00
Felix Schütt
7c05da022a Fix issue when running wasmer/wit-pack and wabt
Fixed duplicated mapped directories when running the .wasm file
2022-10-18 09:19:05 +02:00
Felix Schütt
db16c2014e Rework "wasmer list" 2022-10-17 18:39:23 +02:00
Felix Schütt
a96049884f Add unit test and fix problems when installing package 2022-10-17 17:58:58 +02:00
Felix Schütt
b5bf287648 Fix CI on Linux again 2022-10-14 21:40:48 +02:00
Felix Schütt
d518173a9b Fix CI on Linux 2022-10-14 21:07:34 +02:00
Felix Schütt
f8f33a86ea Add --force install method (download packages without cooldown) 2022-10-14 09:24:19 +02:00
Felix Schütt
2c3f164ab2 Use anyhow::ensure 2022-10-13 19:22:36 +02:00
Felix Schütt
5f831fc886 Fix make lint 2022-10-13 19:19:14 +02:00
Felix Schütt
7419be1830 Merge RunWithoutFile and Run 2022-10-13 18:54:11 +02:00
Felix Schütt
a1548ec7ff Use split_once instead of split().nth(1) 2022-10-13 18:49:39 +02:00
Felix Schütt
600dc2dfc7 Replace package parsing with regex 2022-10-13 18:46:18 +02:00
Felix Schütt
0da844dc4d CLI: use get_subcommands() instead of manual definition 2022-10-13 17:56:55 +02:00
Felix Schütt
9e278c3a1e Fix make lint 2022-10-13 15:54:08 +02:00
Felix Schütt
471fd36720 Rework main CLI command flow into smaller functions 2022-10-13 12:54:48 +02:00
Felix Schütt
8f29862d72 Refactor creating SpinnerHandle 2022-10-11 11:19:51 +02:00
Felix Schütt
5b72f97876 Add option to auto-install packages by command name ("wasmer ls") 2022-10-10 15:47:43 +02:00
Felix Schütt
03fe253441 Fix CI 2022-10-10 12:04:48 +02:00
Felix Schütt
25c4fd4626 Fix issue with CLI run command not finding PathBuf to wasm file 2022-10-10 09:59:02 +02:00
Felix Schütt
6eade9bdd0 Fix issue in Binfmt::debug 2022-10-09 23:59:19 +02:00
Felix Schütt
df047b08a4 Impl Debug for Binfmt 2022-10-09 23:46:47 +02:00
Felix Schütt
0ed3be1d1b Fix clippy issues 2022-10-09 23:37:28 +02:00
Felix Schütt
d0372d5707 Fix last changes from upgrading to clap v4 2022-10-09 23:10:37 +02:00
Felix Schütt
5161078d40 cargo fmt 2022-10-09 19:46:58 +02:00
Felix Schütt
5fe8167fb4 Downgrade to clap v3 2022-10-09 19:45:03 +02:00
Felix Schütt
5bc191487e Try fixing errors when parsing CLI args: todo: undo clap migration 2022-10-07 15:57:44 +02:00
Felix Schütt
7edfd68759 cargo fmt 2022-10-07 13:44:08 +02:00
Felix Schütt
a6d9e3e63a Map every single directory on emscripten 2022-10-07 13:35:32 +02:00
Felix Schütt
50733a536b Try adding support for pkg_fs 2022-10-07 13:17:34 +02:00
Felix Schütt
3be8640a5f Added --env flags for emscripten target, debugged PYTHONHOME 2022-10-06 20:04:42 +02:00
Felix Schütt
5238c8e56b Fix errors in debug mode, implement getenv / setenv on emscripten
This makes it possible to inject custom environment variables
because the EmscriptenState is now sandboxed and decoupled from
the host.
2022-10-06 19:02:55 +02:00
Felix Schütt
2640a6d662 Pass filesystem mappings from wapm.toml to --mapdir 2022-10-06 15:47:26 +02:00
Felix Schütt
efdb1f4e76 cargo fmt 2022-10-06 12:00:21 +02:00
Felix Schütt
374494ef3c Install packages correctly 2022-10-06 11:56:07 +02:00
Felix Schütt
2c1cf2e7c5 Implemented "did you mean" functionality 2022-10-05 15:43:14 +02:00
Felix Schütt
6c57e1e30f Finished adding wasmer -vV and --help messages 2022-10-04 15:32:10 +02:00
Felix Schütt
af01356eb1 Implement wasmer -vV 2022-10-04 15:10:31 +02:00
Felix Schütt
ba8b13c3e8 Add spinner when installing package 2022-10-04 13:17:40 +02:00
Felix Schütt
d74419dfb6 Don't panic when trying to run wasmer run [package] 2022-10-04 12:55:03 +02:00
Felix Schütt
771e1e33a1 Added RunWithoutFile to prepare downloading + GraphQL schema 2022-10-04 12:10:31 +02:00
Felix Schütt
6cd80f4937 Update clap, rewrite main CLI logic 2022-10-04 10:32:57 +02:00
Felix Schütt
58294b8d46 cargo fmt 2022-09-15 15:06:39 +02:00
Felix Schütt
219d0c0278 Use gcc instead of cc, fix wasmer/lib/c-api in wasmer_base_dir string 2022-09-15 14:46:41 +02:00
Go Murakami
26848ef439 Fix compile command for arm 2022-09-15 13:11:36 +09:00