mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-01 19:02:22 +01:00
Reduce public API
This commit is contained in:
28
src/lib.rs
28
src/lib.rs
@@ -1,14 +1,15 @@
|
||||
/// `bat` is a library to print syntax highlighted content.
|
||||
///
|
||||
/// ```
|
||||
/// use bat::PrettyPrinter;
|
||||
///
|
||||
/// PrettyPrinter::new()
|
||||
/// .input_from_bytes(b"<span style=\"color: #ff00cc\">Hello world!</span>\n")
|
||||
/// .language("html")
|
||||
/// .run()
|
||||
/// .expect("no errors");
|
||||
/// ```
|
||||
//! `bat` is a library to print syntax highlighted content.
|
||||
//!
|
||||
//! ```
|
||||
//! use bat::PrettyPrinter;
|
||||
//!
|
||||
//! PrettyPrinter::new()
|
||||
//! .input_from_bytes(b"<span style=\"color: #ff00cc\">Hello world!</span>\n")
|
||||
//! .language("html")
|
||||
//! .run()
|
||||
//! .expect("no errors");
|
||||
//! ```
|
||||
|
||||
pub mod assets;
|
||||
pub mod assets_metadata;
|
||||
pub mod config;
|
||||
@@ -21,7 +22,7 @@ mod less;
|
||||
pub(crate) mod line_range;
|
||||
mod output;
|
||||
mod preprocessor;
|
||||
pub mod pretty_printer;
|
||||
mod pretty_printer;
|
||||
pub(crate) mod printer;
|
||||
pub(crate) mod style;
|
||||
pub(crate) mod syntax_mapping;
|
||||
@@ -33,6 +34,3 @@ pub use pretty_printer::PrettyPrinter;
|
||||
pub use style::{StyleComponent, StyleComponents};
|
||||
pub use syntax_mapping::{MappingTarget, SyntaxMapping};
|
||||
pub use wrap::WrappingMode;
|
||||
|
||||
#[cfg(feature = "paging")]
|
||||
pub use config::PagingMode;
|
||||
|
Reference in New Issue
Block a user