use std::path::Path;
use anyhow::Result;
use crate::subprocess_utils::{capture_output, check_call};
pub fn tag_local(_project: &Path) -> Result<bool> {
check_call("git", &["tag"])?;
Ok(true)
}
pub fn tag_remote(_project: &Path) -> Result<bool> {
check_call("git", &["ls-remote", "--tags", "origin"])?;
Ok(true)
}
pub fn tag_has_local(_project: &Path) -> Result<bool> {
let output = capture_output("git", &["tag"])?;
Ok(!output.is_empty())
}
pub fn tag_has_remote(_project: &Path) -> Result<bool> {
let output = capture_output("git", &["ls-remote", "--tags", "origin"])?;
Ok(!output.is_empty())
}