rgch 0.1.33

Rust version of gch
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{
    ansi::{
        colors::{G, X},
        others::ARS,
    },
    git::pull,
    proc::execute,
};

pub fn push(remote: &str, branch: &str) {
    println!("\n{c}{a}Pull before pushing...{x}", a = ARS, c = G, x = X);
    // let string = format!("{a}Pull before push{x}", a = ARS, x = X);
    // println!("{}", string);
    pull::pull(remote, branch, false);
    let string = format!("git push {} {}", remote, branch);
    execute(&string);
}