Skip to content

Commit dfa4ee5

Browse files
committed
Add spacetime auth CLI interface
1 parent bb23f70 commit dfa4ee5

5 files changed

Lines changed: 723 additions & 0 deletions

File tree

Cargo.lock

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

crates/cli/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ tokio-tungstenite.workspace = true
7373
toml.workspace = true
7474
toml_edit.workspace = true
7575
tracing = { workspace = true, features = ["release_max_level_off"] }
76+
url.workspace = true
7677
walkdir.workspace = true
7778
wasmbin.workspace = true
7879
webbrowser.workspace = true

crates/cli/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pub fn get_subcommands() -> Vec<Command> {
3838
server::cli(),
3939
subscribe::cli(),
4040
start::cli(),
41+
auth::cli(),
4142
subcommands::version::cli(),
4243
]
4344
}
@@ -67,6 +68,7 @@ pub async fn exec_subcommand(
6768
"start" => return start::exec(config, paths, args).await,
6869
"login" => login::exec(config, args).await,
6970
"logout" => logout::exec(config, args).await,
71+
"auth" => auth::exec(config, paths, args).await,
7072
"version" => return subcommands::version::exec(paths, root_dir, args).await,
7173
unknown => Err(anyhow::anyhow!("Invalid subcommand: {unknown}")),
7274
}

0 commit comments

Comments
 (0)