jsonhash 0.2.0

A command-line tool to generate hash values for files. SHA256 and MD5. Output and Error messages in JSON format.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::outputer::Outputer;

pub struct JsonOutputer;

impl Outputer for JsonOutputer {
    fn output(&self, data: &str) -> String {
        // In this simple case, we just return the data as is
        // since it's already JSON formatted
        data.to_string()
    }
}