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;
use cmd_proc::Stdio;

git_proc::fetch::new()
    .all()
    .build()
    .spawn()
    .stderr(Stdio::Null)
    .run()?;

Required Methods§

Source

fn build(self) -> Command

Build the command without executing it.

Implementors§

Source§

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

Source§

impl Build for Clone<'_>

Source§

impl Build for Commit<'_>

Source§

impl Build for Config<'_>

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 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 git_proc::worktree::Add<'_>

Source§

impl Build for List<'_>

Source§

impl Build for Remove<'_>