Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cloud CLI tunnel command #1552

Merged
merged 14 commits into from
Jun 5, 2024
11 changes: 11 additions & 0 deletions Cargo.lock

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

11 changes: 11 additions & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ restate-service-protocol = { workspace = true, features = ["awakeable-id"] }
restate-types = { workspace = true }

anyhow = { workspace = true }
arc-swap = { workspace = true }
arrow = { version = "51.0.0", features = ["ipc", "prettyprint", "json"] }
arrow_convert = { version = "0.6.6" }
axum = { workspace = true, default-features = false, features = ["http1", "http2", "query", "tokio"] }
bytes = { workspace = true }
base62 = { version = "2.0.2" }
base64 = { workspace = true }
bs58 = { version = "0.5.0" }
chrono = { workspace = true }
chrono-humanize = { version = "0.2.3" }
clap = { version = "4.1", features = ["derive", "env", "wrap_help", "color"] }
Expand All @@ -41,21 +44,29 @@ dotenvy = "0.15"
figment = { version = "0.10.8", features = ["env", "toml"] }
futures = { workspace = true }
http = { workspace = true }
http-body = "0.4.6"
hyper = { workspace = true, features = ["server", "http2"] }
hyper-rustls = { version = "0.24.1", features = ["http2"] }
hyper-util = { version = "0.1", features = ["client-legacy", "http2", "server", "client", "tokio"] }
indicatif = "0.17.7"
indoc = { version = "2.0.4" }
itertools = { workspace = true }
jsonwebtoken = { version = "9.1.0" }
octocrab = { version = "0.32.0", features = ["stream"] }
once_cell = { workspace = true }
open = "5.1.2"
reqwest = { version = "0.11.22", default-features = false, features = ["json", "rustls-tls", "stream"] }
ring = { version = "0.17.8" }
serde = { workspace = true }
serde_json = { workspace = true }
strum = { workspace = true }
termcolor = { version = "1.4.0" }
tempfile = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["fs"] }
tokio-util = { workspace = true }
toml_edit = "0.22.12"
tower = { workspace = true }
tracing = { workspace = true }
tracing-log = { version = "0.2.0" }
tracing-subscriber = { workspace = true }
Expand Down
10 changes: 7 additions & 3 deletions cli/src/commands/cloud/environments/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// by the Apache License, Version 2.0.

mod configure;
mod proxy;
mod tunnel;

use cling::prelude::*;

Expand All @@ -18,6 +18,10 @@ use cling::prelude::*;
pub enum Environments {
/// Set up the CLI to talk to this Environment
Configure(configure::Configure),
/// Creates a proxy between localhost and the Environment
Proxy(proxy::Proxy),
/// Interact with your environment as if it was running on localhost
///
/// Provide a local port to expose to your environment with --local-port,
/// or remote ports to expose locally with --remote-port.
/// If no ports are provided, localhost:9080 and all remote ports will be tunneled.
Tunnel(tunnel::Tunnel),
}
177 changes: 0 additions & 177 deletions cli/src/commands/cloud/environments/proxy.rs

This file was deleted.

Loading
Loading