Skip to content

Commit 893c706

Browse files
committed
Add interactive connection creation flow
1 parent 150ef55 commit 893c706

5 files changed

Lines changed: 432 additions & 0 deletions

File tree

Cargo.lock

Lines changed: 83 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ rand = "0.8"
2727
sha2 = "0.10"
2828
tiny_http = "0.12"
2929
comfy-table = "7"
30+
inquire = "0.9.4"
3031
indicatif = "0.17"
3132
nix = { version = "0.29", features = ["fs"] }
3233
flate2 = "1"

src/command.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,13 @@ pub enum ConnectionsCreateCommands {
304304

305305
#[derive(Subcommand)]
306306
pub enum ConnectionsCommands {
307+
/// Interactively create a new connection
308+
New {
309+
/// Workspace ID (defaults to first workspace from login)
310+
#[arg(long)]
311+
workspace_id: Option<String>,
312+
},
313+
307314
/// List all connections for a workspace
308315
List {
309316
/// Workspace ID (defaults to first workspace from login)

0 commit comments

Comments
 (0)