1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-26 17:31:42 +00:00

Simplify public API module structure

This commit is contained in:
sharkdp
2020-03-21 21:03:57 +01:00
committed by David Peter
parent 90397a8aac
commit bb0a3d586e
5 changed files with 16 additions and 22 deletions
+4 -6
View File
@@ -18,13 +18,11 @@ use ansi_term;
use bat::{
assets::HighlightingAssets,
config::{Config, PagingMode},
config::{
Config, HighlightedLineRanges, InputFile, LineRange, LineRanges, OutputWrap, PagingMode,
StyleComponent, StyleComponents, SyntaxMapping,
},
errors::*,
inputfile::InputFile,
line_range::{HighlightedLineRanges, LineRange, LineRanges},
style::{StyleComponent, StyleComponents},
syntax_mapping::SyntaxMapping,
wrap::OutputWrap,
};
fn is_truecolor_terminal() -> bool {
+1 -3
View File
@@ -29,10 +29,8 @@ use directories::PROJECT_DIRS;
use bat::{
assets::HighlightingAssets,
config::Config,
config::{Config, InputFile, StyleComponent, StyleComponents},
errors::*,
inputfile::InputFile,
style::{StyleComponent, StyleComponents},
};
fn run_cache_subcommand(matches: &clap::ArgMatches) -> Result<()> {