Skip to content

Commit

Permalink
deps(cli): Upgrade Edge CLI
Browse files Browse the repository at this point in the history
Upgrade to newest Edge CLI version.

This improves the "app create" templates, and fixes some small bugs
related to app creation workflows.

Note: the CLI crate was renamed from wasmer-deploy-cli to wasmer-edge-cli.
  • Loading branch information
theduke committed Nov 27, 2023
1 parent 5563c1c commit 13ded1d
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 66 deletions.
116 changes: 59 additions & 57 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ virtual-net = { version = "0.6.1", path = "../virtual-net" }

# Wasmer-owned dependencies.
webc = { workspace = true }
wasmer-deploy-cli = { version = "=0.1.29", default-features = false }
wasmer-edge-cli = { version = "=0.1.0", default-features = false }

# Third-party dependencies.

Expand Down
16 changes: 8 additions & 8 deletions lib/cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::commands::{
use crate::commands::{CreateObj, GenCHeader};
use crate::error::PrettyError;
use clap::{CommandFactory, Parser};
use wasmer_deploy_cli::cmd::CliCommand;
use wasmer_edge_cli::cmd::CliCommand;

/// The main function for the Wasmer CLI tool.
pub fn wasmer_main() {
Expand Down Expand Up @@ -272,19 +272,19 @@ enum Cmd {
Container(crate::commands::Container),

// Edge commands
/// Deploy apps to the Wasmer Edge.
Deploy(wasmer_deploy_cli::cmd::deploy::CmdDeploy),
/// Deploy apps to Wasmer Edge.
Deploy(wasmer_edge_cli::cmd::deploy::CmdDeploy),

/// Manage deployed apps.
/// Manage deployed Edge apps.
#[clap(subcommand, alias = "apps")]
App(wasmer_deploy_cli::cmd::app::CmdApp),
App(wasmer_edge_cli::cmd::app::CmdApp),

/// Create a dynamic on the Deploy Edge, and connect to it through SSH.
Ssh(wasmer_deploy_cli::cmd::ssh::CmdSsh),
/// Run commands/packages on Wasmer Edge in an interactive shell session.
Ssh(wasmer_edge_cli::cmd::ssh::CmdSsh),

/// Manage Wasmer namespaces.
#[clap(subcommand, alias = "namespaces")]
Namespace(wasmer_deploy_cli::cmd::namespace::CmdNamespace),
Namespace(wasmer_edge_cli::cmd::namespace::CmdNamespace),
}

fn is_binfmt_interpreter() -> bool {
Expand Down

0 comments on commit 13ded1d

Please sign in to comment.