commot 0.1.1

A better alternative of the cat command.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::io::Error;


#[derive(thiserror::Error, Debug)]

/// Simple errors, like FileError which is converted from `[std::io::Error]`
/// ArgNotFound error is given when you run the `commot` command without giving the file or when the required arg is not 
/// provided by the user.
pub enum CommotError {
    #[error("Something went wrong with the file.")]
    FileError(#[from] Error),
    #[error("{0}")]
    ArgNotFound(String)
}