mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2026-02-02 09:25:11 +01:00
refactor: publicly expose error::Error
This commit is contained in:
parent
3bebad0da6
commit
d2eb8f0e16
7 changed files with 9 additions and 9 deletions
|
|
@ -1,9 +1,8 @@
|
|||
use clap::{ArgEnum, Parser};
|
||||
|
||||
use crate::{
|
||||
error::Error,
|
||||
textbuf::{alphabet, regexes},
|
||||
ui, Result,
|
||||
ui, Error, Result,
|
||||
};
|
||||
|
||||
/// Main configuration, parsed from command line.
|
||||
|
|
@ -70,7 +69,7 @@ pub struct Config {
|
|||
|
||||
/// Type introduced due to parsing limitation,
|
||||
/// as we cannot directly parse tuples into ui::HintStyle.
|
||||
#[derive(Debug, Clone, ArgEnum, Parser)]
|
||||
#[derive(Debug, Clone, ArgEnum)]
|
||||
pub enum HintStyleArg {
|
||||
Bold,
|
||||
Italic,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use std::fmt;
|
|||
use clap::{ArgEnum, Parser};
|
||||
|
||||
use super::basic;
|
||||
use crate::{error::Error, textbuf::alphabet, tmux, ui, Result};
|
||||
use crate::{textbuf::alphabet, tmux, ui, Error, Result};
|
||||
|
||||
/// Extended configuration for handling Tmux-specific configuration (options
|
||||
/// and outputs). This is only used by `tmux-copyrat` and parsed from command
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue