Skip to main content

Build

Trait Build 

Source
pub trait Build {
    // Required method
    fn build(self) -> Command;
}
Expand description

Trait for building a command without executing it.

All git command builders implement this trait, allowing you to access the underlying cmd_proc::Command for custom execution.

§Example

ⓘ
use git_proc::Build;

git_proc::fetch::new()
    .all()
    .build()
    .stderr_null()
    .status()
    .await?;

Required Methods§

Source

fn build(self) -> Command

Build the command without executing it.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Build for git_proc::add::Add<'_>

Source§

impl Build for Clean<'_>

Source§

impl Build for Clone<'_>

Source§

impl Build for Commit<'_>

Source§

impl Build for Config<'_>

Source§

impl Build for Diff<'_>

Source§

impl Build for Fetch<'_>

Source§

impl Build for Init<'_>

Source§

impl Build for LsRemote<'_>

Source§

impl Build for Push<'_>

Source§

impl Build for Remote<'_>

Source§

impl Build for Reset<'_, NoTarget>

Source§

impl Build for RevList<'_>

Source§

impl Build for RevParse<'_>

Source§

impl Build for Show<'_>

Source§

impl Build for ShowRef<'_>

Source§

impl Build for Status<'_>

Source§

impl Build for Create<'_>

Source§

impl Build for git_proc::worktree::Add<'_>

Source§

impl Build for List<'_>

Source§

impl Build for Remove<'_>

Source§

impl<'a> Build for Checkout<'a, WithTarget<'a>>

Source§

impl<'a> Build for Reset<'a, WithTarget<'a>>