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
12
13
14
use tracing::instrument;

use crate::{
    utils::{paths::package_path, state::Result},
    utpm_log,
};

/// Prints the path to the local typst packages directory.
#[instrument]
pub async fn run() -> Result<bool> {
    utpm_log!(trace, "executing package_path command");
    utpm_log!("Packages are located at: '{}'", package_path()?.display());
    Ok(true)
}