pub struct Config {
pub directory: Vec<PathBuf>,
pub output: Option<PathBuf>,
pub include: Vec<String>,
pub exclude: Vec<String>,
pub format: Format,
pub append_date: bool,
pub append_git_hash: bool,
pub line_numbers: bool,
pub ignore_hidden: bool,
pub respect_gitignore: bool,
pub relative_path: bool,
}Expand description
Configuration options for the file bundling process.
Fields§
§directory: Vec<PathBuf>The directories to process.
output: Option<PathBuf>The optional output file path. If not provided, output is written to stdout.
include: Vec<String>File extensions to include in the output.
exclude: Vec<String>File extensions to exclude from the output.
format: FormatThe format of the output (Markdown, Text, or Console).
append_date: boolWhether to append the current date to the output file name.
append_git_hash: boolWhether to append the current Git hash to the output file name.
line_numbers: boolWhether to include line numbers in the output.
Whether to ignore hidden files and directories.
respect_gitignore: boolWhether to respect .gitignore rules.
relative_path: boolWhether to use relative paths in the output.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more