glossa-cli 0.0.0

A command-line (binary) tool that generates Rust source code or bincode files containing localized text by calling the glossa-codegen API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use glossa_cli::options::Cli;
use glossa_codegen::{AnyResult, glossa_shared::tap::Pipe};

fn main() -> AnyResult<()> {
  init_logger();
  Cli::run()?;
  Ok(())
}

fn init_logger() {
  env_logger::Env::new()
    .filter_or("GLOSSA_LOG", "info")
    .pipe(env_logger::Builder::from_env)
    .init()
}