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: initializer.rs
    path of file: ./repos/autocorrect/autocorrect-cli/src
    
    the code of the file until where you have to start completion: use crate::{cli::Cli, CONFIG_TEMPLATE};
use std::{fs, path::Path};

type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;

static CONFIG_TEMPLATE_URL: &str =
    "https://github.com/huacnlee/autocorrect/raw/main/.autocorrectrc.template";

#[derive(Default)]
pub(crate) struct InitOption {
    pub force: bool,
    pub local: bool,
}

pub(crate) async fn run(cli: &Cli, opt
    
pub(crate) async fn run(cli: &Cli, option: &InitOption) {
    if Path::exists(Path::new(&cli.config_file)) && !option.force {
        log::warn!("{} already exists.", cli.config_file);
        return;
    }

    let mut template = CONFIG_TEMPLATE.to_string();

    if !option.local {
        match fetch_config_template().await {
            Ok(out) => {
                template = out;
            }
            Err(e) => {
                log::error!("Fetch config template error: \n\n{}", e);
                log::error!("\nTry use --local init config without remote download.\n\n  autocorrect init --local\n");
                return;
            }
        }
    }

    log::info!("AutoCorrect init config: {}", cli.config_file);
    fs::write(Path::new(&cli.config_file), template)
        .unwrap_or_else(|_| panic!("Failed to write config file: {}", &cli.config_file));
}