MCPcopy Create free account
hub / github.com/Botloader/botloader / main

Function main

cmd/blcmd/src/main.rs:9–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8#[tokio::main]
9async fn main() -> Result<(), Box<dyn std::error::Error>> {
10 let args = Args::parse();
11
12 let config = confy::load(APP_NAME)?;
13
14 let ctx = Context {
15 _full_args: args.clone(),
16 config,
17 };
18
19 match args.cmd {
20 Command::Login => login(ctx).await?,
21 Command::Logout => logout(ctx).await?,
22 Command::Status => check_login(ctx).await?,
23 Command::Sync => todo!(),
24 Command::PushAllChanges => todo!(),
25 Command::UpdateScript => todo!(),
26 Command::DelScript => todo!(),
27 Command::CreateScript => todo!(),
28 Command::PublishVersion => todo!(),
29 Command::StartDevSession => todo!(),
30 Command::StopDevSession => todo!(),
31 }
32
33 Ok(())
34}
35
36#[derive(Clone, clap::Parser)]
37struct Args {

Callers

nothing calls this directly

Calls 3

loginFunction · 0.85
check_loginFunction · 0.85
logoutFunction · 0.70

Tested by

no test coverage detected