episko_cli 1.0.0

Cli for the episko project
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! # Validating and caching of a manifest
//! 
//! This module contains the code for the validation and caching of a manifest and is directly used by the the validate and cache command.

use camino::Utf8PathBuf;
use color_eyre::Result;
use episko_lib::{files::File, metadata::Metadata};

pub fn validate_manifest(file: &Utf8PathBuf) -> Result<()> {
    Ok(Metadata::validate_file(file.as_std_path())?)
}

pub fn cache_manifest(_file: &Utf8PathBuf) -> Result<()> {
    todo!()
}