You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
663 B

//! Used for resolving autodetects
use super::*;
use std::{
path::{
Path,
},
error,
fmt,
};
pub async fn find_file_mode<P: AsRef<Path>>(path: P) -> Result<config::op::Mode, Error>
{
//TODO: we need to calculate mode here
todo!()
}
pub async fn find_key_mode<P: AsRef<Path>>(path: P) -> Result<config::KeyKind, Error>
{
//TODO: we need to calculate mode here
todo!()
}
#[derive(Debug)]
#[non_exhaustive]
pub enum Error
{
Unknown
}
impl error::Error for Error{}
impl fmt::Display for Error
{
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
{
match self {
_ => write!(f, "unknown error"),
}
}
}