Skip to main content

Entire

Struct Entire 

Source
pub struct Entire { /* private fields */ }
Expand description

The entire CLI, found and logged in.

Implementations§

Source§

impl Entire

Source

pub fn probe() -> Result<Self, String>

entire, if it is on PATH and logged in; otherwise why not, in words fit for entire: {available: false, reason}.

Source

pub fn trail( &self, repo: &Repo, linked: Option<u64>, branch: &str, ) -> Result<Option<Trail>, String>

The trail for a PR: the one the gates check links to when there is one, else the one tracking the head branch (or, once merged, the one that tracked it). None when no trail does.

Source

pub fn findings( &self, repo: &Repo, trail: u64, all: bool, ) -> Result<Findings, String>

A trail’s findings: open and current ones, or with all every one, resolved, dismissed and stale included.

Source

pub fn change( &self, repo: &Repo, trail: u64, id: &str, change: Change, message: Option<&str>, ) -> Result<(), String>

Resolves, dismisses or reopens a finding, recording message as the reason.

Source

pub fn output(&self, args: &[&str]) -> Result<String, String>

entire ARGS, uncached, returning what it printed: a write, or a read that must see changes, as a wait’s polls must.

Source

pub fn read(&self, args: &[&str]) -> Result<Value, String>

A read, made once per process: entire ARGS, which prints one JSON document.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.