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: mod.rs
    path of file: ./repos/grafbase/cli/crates/cli/src/panic_hook
    
    the code of the file until where you have to start completion: pub mod report;

use crate::watercolor;
use report::{Method, Report};
use std::borrow::Cow;
use std::fmt::Write;
use std::panic::PanicInfo;
use std::path::{Path, PathBuf};
use watercolor::watercolor;

/// A convenient metadata struct that describes a crate
pub struct Metadata {
    /// The crate version
    pub version: Cow<'static, str>,
    /// The crate name
    pub name: Cow<'static, str>,
    /// The URL of the crate's website
    pub homepage: Cow<'static, str>,
    /// The URL of the crate's repository
    pub repository: Cow<'static, str>,
    /// A discord invite link
    pub discord: Cow<'static, str>,
}

/// `panic-hook` initialisation macro
///
/// ```
/// panic_hook!();
/// ```
#[macro_export]
macro_rules! panic_hook {
    (
    
pub fn print_msg<P: AsRef<Path>>(file_path: Option<P>, metadata: &Metadata) {
    let Metadata {
        name,
        homepage,
        repository,
        discord,
        ..
    } = metadata;
    let file_path = match file_path {
        Some(file_path) => format!("{}", file_path.as_ref().display()),
        None => "<Failed to store file to disk>".to_string(),
    };

    watercolor::output_error!(
        indoc::indoc!{r##"
            Well, this is embarrassing, {} had a problem and crashed.
            
            We have generated a report file at {}. 
            To help us address this issue, please consider submitting a GitHub issue or sending a message on Discord and including the report.
        
            - Homepage: {}
            - Repository: {}
            - Discord: {}
        
            Thank you!
        "##},
        name,
        watercolor!("{file_path}", @BrightBlue),
        watercolor!("{homepage}", @BrightBlue),
        watercolor!("{repository}", @BrightBlue),
        watercolor!("{discord}", @BrightBlue),
        @BrightRed
    );
}