mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 23:59:43 +01:00
add agent-host command for cli
This commit is contained in:
@@ -8,7 +8,7 @@ use std::process::Command;
|
||||
|
||||
use clap::Parser;
|
||||
use cli::{
|
||||
commands::{args, serve_web, tunnels, update, version, CommandContext},
|
||||
commands::{agent_host, args, serve_web, tunnels, update, version, CommandContext},
|
||||
constants::get_default_user_agent,
|
||||
desktop, log,
|
||||
state::LauncherPaths,
|
||||
@@ -103,6 +103,10 @@ async fn main() -> Result<(), std::convert::Infallible> {
|
||||
serve_web::serve_web(context!(), sw_args).await
|
||||
}
|
||||
|
||||
Some(args::Commands::AgentHost(ah_args)) => {
|
||||
agent_host::agent_host(context!(), ah_args).await
|
||||
}
|
||||
|
||||
Some(args::Commands::Tunnel(mut tunnel_args)) => match tunnel_args.subcommand.take() {
|
||||
Some(args::TunnelSubcommand::Prune) => tunnels::prune(context!()).await,
|
||||
Some(args::TunnelSubcommand::Unregister) => tunnels::unregister(context!()).await,
|
||||
|
||||
Reference in New Issue
Block a user