pub struct ExtractOptions {Show 13 fields
pub files: Vec<String>,
pub custom_ignores: Vec<String>,
pub context_lines: usize,
pub format: String,
pub from_clipboard: bool,
pub input_file: Option<String>,
pub to_clipboard: bool,
pub dry_run: bool,
pub diff: bool,
pub allow_tests: bool,
pub keep_input: bool,
pub prompt: Option<PromptTemplate>,
pub instructions: Option<String>,
}
Expand description
Options for the extract command
Fields§
§files: Vec<String>
Files to extract from
custom_ignores: Vec<String>
Custom patterns to ignore
context_lines: usize
Number of context lines to include
format: String
Output format
from_clipboard: bool
Whether to read from clipboard
input_file: Option<String>
Path to input file to read from
to_clipboard: bool
Whether to write to clipboard
dry_run: bool
Whether to perform a dry run
diff: bool
Whether to parse input as git diff format
allow_tests: bool
Whether to allow test files and test code blocks
keep_input: bool
Whether to keep and display the original input content
prompt: Option<PromptTemplate>
Optional prompt template for LLM models
instructions: Option<String>
Optional user instructions for LLM models
Auto Trait Implementations§
impl Freeze for ExtractOptions
impl RefUnwindSafe for ExtractOptions
impl Send for ExtractOptions
impl Sync for ExtractOptions
impl Unpin for ExtractOptions
impl UnwindSafe for ExtractOptions
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more