()
| 7 | |
| 8 | #[tokio::main] |
| 9 | async 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)] |
| 37 | struct Args { |
nothing calls this directly
no test coverage detected