mun 0.4.0

Command-line interface for compiling, monitoring and running Mun code
1
2
3
4
5
6
7
8
9
10
11
use crate::ExitStatus;

#[derive(clap::Args)]
pub struct Args {}

/// This function is invoked when the executable is invoked with the `language-server` argument. A
/// Mun language server is started ready to serve language information about one or more projects.
pub fn language_server(_args: Args) -> Result<ExitStatus, anyhow::Error> {
    mun_language_server::run_server().map_err(|e| anyhow::anyhow!("{}", e))?;
    Ok(ExitStatus::Success)
}