MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / exec_set_default

Function exec_set_default

crates/cli/src/subcommands/server.rs:175–180  ·  view source on GitHub ↗
(mut config: Config, args: &ArgMatches)

Source from the content-addressed store, hash-verified

173}
174
175pub async fn exec_set_default(mut config: Config, args: &ArgMatches) -> Result<(), anyhow::Error> {
176 let server = args.get_one::<String>("server").unwrap();
177 config.set_default_server(server)?;
178 config.save();
179 Ok(())
180}
181
182fn valid_protocol_or_error(protocol: &str) -> anyhow::Result<()> {
183 if !VALID_PROTOCOLS.contains(&protocol) {

Callers 1

exec_subcommandFunction · 0.85

Calls 4

set_default_serverMethod · 0.80
OkFunction · 0.50
unwrapMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…