Skip to content

Commit f2deada

Browse files
committed
Add spacetime auth CLI interface
1 parent 36879b8 commit f2deada

7 files changed

Lines changed: 924 additions & 0 deletions

File tree

‎.github/CODEOWNERS‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ LICENSE.txt @cloutiertyler @jdetter
77
/licenses/ @cloutiertyler @jdetter
88

99
/crates/client-api-messages/src/websocket.rs @centril @gefjon
10+
/crates/client-api-messages/src/websocket.rs @centril @gefjon
11+
/crates/cli/src/subcommands/auth.rs @julienlavocat
1012

1113
/tools/ci/ @bfops @cloutiertyler @jdetter
1214
/tools/ci/src/keynote_bench.rs @joshua-spacetime @cloutiertyler @jdetter

‎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
@@ -41,6 +41,7 @@ pub fn get_subcommands() -> Vec<Command> {
4141
start::cli(),
4242
lock::cli(),
4343
unlock::cli(),
44+
auth::cli(),
4445
subcommands::version::cli(),
4546
]
4647
}
@@ -73,6 +74,7 @@ pub async fn exec_subcommand(
7374
"logout" => logout::exec(config, args).await,
7475
"lock" => lock::exec(config, args).await,
7576
"unlock" => unlock::exec(config, args).await,
77+
"auth" => auth::exec(config, paths, args).await,
7678
"version" => return subcommands::version::exec(paths, root_dir, args).await,
7779
unknown => Err(anyhow::anyhow!("Invalid subcommand: {unknown}")),
7880
}

0 commit comments

Comments
 (0)