Skip to content

Commit 3f71a05

Browse files
authored
fix: skip tunnel type with only one option (#37)
1 parent 7739aee commit 3f71a05

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/ports/tunnel.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,12 @@ pub async fn run(args: Args, cli: &crate::Cli) -> miette::Result<()> {
158158
.as_ref()
159159
.ok_or(miette::miette!("missing context"))?;
160160

161-
let tunnel_options = vec!["node"];
161+
// we skip asking for tunnel type since the only one available at the moment is the Cardano node.
162162

163-
let _tunnel = inquire::Select::new("Choose the port to tunnel", tunnel_options)
164-
.prompt()
165-
.into_diagnostic()?;
163+
// let tunnel_options = vec!["node"];
164+
// let _tunnel = inquire::Select::new("Choose the port to tunnel", tunnel_options)
165+
// .prompt()
166+
// .into_diagnostic()?;
166167

167168
let options: PortOptions = api::get_public(&format!("metadata/ports/{}", CARDANO_NODE_KIND))
168169
.await

0 commit comments

Comments
 (0)