utpm 0.3.0

UTPM is a package manager for local and remote Typst packages. Quickly create and manage projects and templates on your system, and publish them directly to Typst Universe.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use once_cell::sync::OnceCell;

use crate::commands::Cli;

/// A global static variable holding the args with which UTPM has been called
pub static ARGS: OnceCell<Cli> = OnceCell::new();

/// Returns the arguments
pub fn get_args() -> &'static Cli {
    ARGS.get().expect("ARGS should be initialized")
}