Add wasmer init

This commit is contained in:
Felix Schütt
2022-11-18 13:54:30 +01:00
parent 0e9d02bddb
commit 0dfa9a8bfa
4 changed files with 267 additions and 0 deletions

View File

@@ -135,6 +135,10 @@ enum WasmerCLIOptions {
/// Inspect a WebAssembly file
Inspect(Inspect),
/// Initializes a new wapm.toml file
#[clap(name = "init")]
Init(Init),
/// Run spec testsuite
#[cfg(feature = "wast")]
Wast(Wast),
@@ -165,6 +169,7 @@ impl WasmerCLIOptions {
Self::CreateObj(create_obj) => create_obj.execute(),
Self::Config(config) => config.execute(),
Self::Inspect(inspect) => inspect.execute(),
Self::Init(init) => init.execute(),
Self::List(list) => list.execute(),
Self::Login(login) => login.execute(),
#[cfg(feature = "wast")]