Skip to content

Commit

Permalink
chore: merge pull request #2 from websublime/feature/git-fetch
Browse files Browse the repository at this point in the history
feat: git fetch commands
  • Loading branch information
miguelramos authored Jul 4, 2024
2 parents 1f3b454 + b702549 commit 0d0ed2d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![deny(clippy::all)]

use workspace_node_tools::git::commands::Git;
use workspace_node_tools::monorepo::packages::{Monorepo, PackageInfo};

#[macro_use]
Expand All @@ -19,3 +20,13 @@ pub fn defined_agent() -> Option<String> {
pub fn monorepo_packages() -> Vec<PackageInfo> {
Monorepo::get_packages()
}

#[napi(js_name = "executeFetchAll")]
pub fn git_fetch_all(cwd: Option<String>) -> bool {
Git::fetch_all(cwd).is_ok()
}

#[napi(js_name = "executeFetchAllTags")]
pub fn git_fetch_all_tags(cwd: Option<String>) -> bool {
Git::fetch_all_tags(cwd).is_ok()
}

0 comments on commit 0d0ed2d

Please sign in to comment.