pub struct UndercoverService { /* private fields */ }Expand description
Undercover service for managing safe operations
Implementations§
Source§impl UndercoverService
impl UndercoverService
Sourcepub fn with_internal_domains(domains: Vec<String>) -> Self
pub fn with_internal_domains(domains: Vec<String>) -> Self
Create with custom internal domain list
Sourcepub fn is_active(&self, repo_path: &Path) -> bool
pub fn is_active(&self, repo_path: &Path) -> bool
Determine if undercover mode is active for the given repo
Sourcepub fn classify_repo(&self, repo_path: &Path) -> RepoClass
pub fn classify_repo(&self, repo_path: &Path) -> RepoClass
Classify a repository as internal or external
Sourcepub fn status(&self) -> UndercoverStatus
pub fn status(&self) -> UndercoverStatus
Get current status
Sourcepub fn get_instructions(&self) -> String
pub fn get_instructions(&self) -> String
Get undercover instructions to prepend to commit messages
Sourcepub fn sanitize_commit_message(&self, message: &str) -> String
pub fn sanitize_commit_message(&self, message: &str) -> String
Sanitize a commit message by removing internal references
Sourcepub fn contains_internal_refs(&self, text: &str) -> bool
pub fn contains_internal_refs(&self, text: &str) -> bool
Check if a string contains internal references
Trait Implementations§
Source§impl Clone for UndercoverService
impl Clone for UndercoverService
Auto Trait Implementations§
impl !Freeze for UndercoverService
impl RefUnwindSafe for UndercoverService
impl Send for UndercoverService
impl Sync for UndercoverService
impl Unpin for UndercoverService
impl UnsafeUnpin for UndercoverService
impl UnwindSafe for UndercoverService
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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