mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 06:08:29 +00:00
Remove unnecessary clap(name = )
This commit is contained in:
@@ -39,28 +39,23 @@ use std::{fmt, str::FromStr};
|
|||||||
/// The options for the wasmer Command Line Interface
|
/// The options for the wasmer Command Line Interface
|
||||||
enum WasmerCLIOptions {
|
enum WasmerCLIOptions {
|
||||||
/// List all locally installed packages
|
/// List all locally installed packages
|
||||||
#[clap(name = "list")]
|
|
||||||
List(List),
|
List(List),
|
||||||
|
|
||||||
/// Run a WebAssembly file. Formats accepted: wasm, wat
|
/// Run a WebAssembly file. Formats accepted: wasm, wat
|
||||||
#[clap(name = "run")]
|
|
||||||
Run(Run),
|
Run(Run),
|
||||||
|
|
||||||
/// Login into a wapm.io-like registry
|
/// Login into a wapm.io-like registry
|
||||||
#[clap(name = "login")]
|
|
||||||
Login(Login),
|
Login(Login),
|
||||||
|
|
||||||
/// Wasmer cache
|
/// Wasmer cache
|
||||||
#[clap(subcommand, name = "cache")]
|
#[clap(subcommand)]
|
||||||
Cache(Cache),
|
Cache(Cache),
|
||||||
|
|
||||||
/// Validate a WebAssembly binary
|
/// Validate a WebAssembly binary
|
||||||
#[clap(name = "validate")]
|
|
||||||
Validate(Validate),
|
Validate(Validate),
|
||||||
|
|
||||||
/// Compile a WebAssembly binary
|
/// Compile a WebAssembly binary
|
||||||
#[cfg(feature = "compiler")]
|
#[cfg(feature = "compiler")]
|
||||||
#[clap(name = "compile")]
|
|
||||||
Compile(Compile),
|
Compile(Compile),
|
||||||
|
|
||||||
/// Compile a WebAssembly binary into a native executable
|
/// Compile a WebAssembly binary into a native executable
|
||||||
@@ -132,7 +127,6 @@ enum WasmerCLIOptions {
|
|||||||
|
|
||||||
/// Get various configuration information needed
|
/// Get various configuration information needed
|
||||||
/// to compile programs which use Wasmer
|
/// to compile programs which use Wasmer
|
||||||
#[clap(name = "config")]
|
|
||||||
Config(Config),
|
Config(Config),
|
||||||
|
|
||||||
/// Update wasmer to the latest version
|
/// Update wasmer to the latest version
|
||||||
@@ -140,21 +134,17 @@ enum WasmerCLIOptions {
|
|||||||
SelfUpdate(SelfUpdate),
|
SelfUpdate(SelfUpdate),
|
||||||
|
|
||||||
/// Inspect a WebAssembly file
|
/// Inspect a WebAssembly file
|
||||||
#[clap(name = "inspect")]
|
|
||||||
Inspect(Inspect),
|
Inspect(Inspect),
|
||||||
|
|
||||||
/// Run spec testsuite
|
/// Run spec testsuite
|
||||||
#[cfg(feature = "wast")]
|
#[cfg(feature = "wast")]
|
||||||
#[clap(name = "wast")]
|
|
||||||
Wast(Wast),
|
Wast(Wast),
|
||||||
|
|
||||||
/// Unregister and/or register wasmer as binfmt interpreter
|
/// Unregister and/or register wasmer as binfmt interpreter
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
#[clap(name = "binfmt")]
|
|
||||||
Binfmt(Binfmt),
|
Binfmt(Binfmt),
|
||||||
|
|
||||||
/// Shows the current logged in user for the current active registry
|
/// Shows the current logged in user for the current active registry
|
||||||
#[clap(name = "whoami")]
|
|
||||||
Whoami(Whoami),
|
Whoami(Whoami),
|
||||||
|
|
||||||
/// Add a WAPM package's bindings to your application.
|
/// Add a WAPM package's bindings to your application.
|
||||||
|
|||||||
Reference in New Issue
Block a user