caesura 0.30.2

An all-in-one command line tool to transcode FLAC audio files and upload to gazelle based indexers/trackers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::prelude::*;

/// Inspect audio file metadata in a directory.
#[injectable]
pub(crate) struct InspectCommand {
    arg: Ref<InspectArg>,
}

impl InspectCommand {
    /// Execute [`InspectCommand`] from the CLI.
    pub(crate) fn execute_cli(&self) -> Result<bool, Failure<InspectAction>> {
        let factory = InspectFactory::new(true);
        let output = factory.create(&self.arg.inspect_path)?;
        println!("{output}");
        Ok(true)
    }
}