mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-08 22:32:26 +01:00
Add $LESSOPEN
and $LESSCLOSE
support (#2444)
This commit is contained in:
@@ -28,6 +28,12 @@ pub enum Error {
|
||||
InvalidPagerValueBat,
|
||||
#[error("{0}")]
|
||||
Msg(String),
|
||||
#[cfg(feature = "lessopen")]
|
||||
#[error(transparent)]
|
||||
VarError(#[from] ::std::env::VarError),
|
||||
#[cfg(feature = "lessopen")]
|
||||
#[error(transparent)]
|
||||
CommandParseError(#[from] ::shell_words::ParseError),
|
||||
}
|
||||
|
||||
impl From<&'static str> for Error {
|
||||
|
Reference in New Issue
Block a user