MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / installed_credentials

Function installed_credentials

packages/server/src/service.rs:364–372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

362}
363
364fn installed_credentials() -> anyhow::Result<Option<ServiceCredentials>> {
365 let Some(arguments) = installed_arguments()? else {
366 return Ok(None);
367 };
368 Ok(Some(ServiceCredentials {
369 access_token: argument_value(&arguments, "--access-token"),
370 pairing_code: argument_value(&arguments, "--pairing-code"),
371 }))
372}
373
374fn installed_argument_value(name: &str) -> anyhow::Result<Option<String>> {
375 Ok(installed_arguments()?

Callers 1

Calls 2

installed_argumentsFunction · 0.85
argument_valueFunction · 0.85

Tested by

no test coverage detected