You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: main.rs
    path of file: ./repos/tabby/crates/tabby/src
    
    the code of the file until where you have to start completion: mod routes;
mod services;

mod download;
mod serve;

#[cfg(feature = "ee")]
mod worker;

#[cfg(target_family = "unix")]
use std::os::unix::fs::PermissionsExt;

use clap::{Parser, Subcommand};
use opentelemetry::{
    global,
    sdk::{propagation::TraceContextPropagator, trace, trace::Sampler, Resource},
 
    
async fn main() {
    let cli = Cli::parse();
    init_logging(cli.otlp_endpoint);

    let config = Config::load().unwrap_or_default();
    let root = tabby_common::path::tabby_root();
    std::fs::create_dir_all(&root).expect("Must be able to create tabby root");
    #[cfg(target_family = "unix")]
    {
        let mut permissions = std::fs::metadata(&root).unwrap().permissions();
        permissions.set_mode(0o700);
        std::fs::set_permissions(&root, permissions).unwrap();
    }

    match cli.command {
        Commands::Serve(ref args) => serve::main(&config, args).await,
        Commands::Download(ref args) => download::main(args).await,
        #[cfg(feature = "ee")]
        Commands::Scheduler(SchedulerArgs {
            now,
            url: Some(url),
            token: Some(token),
        }) => {
            let client = tabby_webserver::public::create_scheduler_client(&url, &token).await;
            tabby_scheduler::scheduler(now, client)
                .await
                .unwrap_or_else(|err| fatal!("Scheduler failed due to '{}'", err))
        }
        Commands::Scheduler(SchedulerArgs { now, .. }) => {
            tabby_scheduler::scheduler(now, ConfigRepositoryAccess)
                .await
                .unwrap_or_else(|err| fatal!("Scheduler failed due to '{}'", err))
        }
        #[cfg(feature = "ee")]
        Commands::WorkerCompletion(ref args) => {
            worker::main(tabby_webserver::public::WorkerKind::Completion, args).await
        }
        #[cfg(feature = "ee")]
        Commands::WorkerChat(ref args) => {
            worker::main(tabby_webserver::public::WorkerKind::Chat, args).await
        }
    }

    opentelemetry::global::shutdown_tracer_provider();
}