[][src]Struct mrh::Crawler

pub struct Crawler { /* fields omitted */ }

Crawls the filesystem, looking for Git repos

Methods

impl Crawler[src]

pub fn new<P: AsRef<Path>>(root: P) -> Self[src]

root is where crawling for Git repos begin

pub fn pending(self, answer: bool) -> Self[src]

Decide if you only want matches that are in pending state

pub fn ignore_untracked(self, answer: bool) -> Self[src]

Decide if you want to exclude matches that have untracked files

pub fn ignore_uncommitted_repos(self, answer: bool) -> Self[src]

Decide if you want to exclude repos that have no commits

This will happen when a git init is executed, and one forgets to commit.

pub fn absolute_paths(self, answer: bool) -> Self[src]

Display absolute paths (instead of relative ones)

pub fn untagged_heads(self, answer: bool) -> Self[src]

Decide if you want matches whose HEADS are not tagged

A use-case is where related repositories (e.g. those comprising a single system), need to be tagged before, say, a release

pub fn access_remote(self, ssh_auth_method: Option<String>) -> Self[src]

Allow access to the remote of the repo

This allows checking if the repo is in sync with its remote counterpart, so will be relatively slow if remote is behind a network (which is the most likely scenario).

HTTP protocol remotes

Uses Git's credentials.helper to determine what authentication method to use. If not successful:

error: an unknown git error occurred

Git protocol remotes

If "ssh-key" is specified, the ssh key will be used for authentication. If "ssh-agent" is specified, a correctly-set ssh-agent will be assumed. This is useful for cases where passphrase is set on the ssh key, else you will get a:

error authenticating: no auth sock variable

Trait Implementations

impl Iterator for Crawler[src]

type Item = Output

The type of the elements being iterated over.

Auto Trait Implementations

impl !RefUnwindSafe for Crawler

impl !Send for Crawler

impl !Sync for Crawler

impl Unpin for Crawler

impl !UnwindSafe for Crawler

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.