1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-01 10:52:24 +01:00

Rename output component to 'style compinent', move wrap to separate module

This commit is contained in:
sharkdp
2020-03-21 20:54:16 +01:00
committed by David Peter
parent a8851e1307
commit 84ba323b1c
9 changed files with 88 additions and 86 deletions

View File

@@ -3,7 +3,7 @@ use bat::{
config::Config,
controller::Controller,
inputfile::InputFile,
style::{OutputComponent, OutputComponents},
style::{StyleComponent, StyleComponents},
};
use console::Term;
use std::process;
@@ -20,10 +20,10 @@ fn main() {
term_width: Term::stdout().size().1 as usize,
colored_output: true,
true_color: true,
output_components: OutputComponents::new(&[
OutputComponent::Header,
OutputComponent::Grid,
OutputComponent::Numbers,
style_components: StyleComponents::new(&[
StyleComponent::Header,
StyleComponent::Grid,
StyleComponent::Numbers,
]),
files: files.iter().map(|file| InputFile::Ordinary(file)).collect(),
theme: "1337".into(),