Lines Matching refs:String
25 url: String,
27 branch: Option<String>,
29 revision: Option<String>,
33 pub fn new(url: String, branch: Option<String>, revision: Option<String>) -> Self {
91 /// - `Err(String)` - 失败,错误信息
92 pub fn prepare(&self, target_dir: &CacheDir) -> Result<(), String> {
122 fn check_repo(&self, target_dir: &CacheDir) -> Result<bool, String> {
139 let mut r = String::from_utf8(output.stdout).unwrap();
151 fn set_url(&self, target_dir: &CacheDir) -> Result<(), String> {
179 fn checkout(&self, target_dir: &CacheDir) -> Result<(), String> {
191 let do_checkout = || -> Result<(), String> {
217 String::from_utf8_lossy(&output.stdout)
236 String::from_utf8_lossy(&suboutput.stdout)
256 pub fn clone_repo(&self, cache_dir: &CacheDir) -> Result<(), String> {
315 fn set_fetch_config(&self, target_dir: &CacheDir) -> Result<(), String> {
339 fn unshallow(&self, target_dir: &CacheDir) -> Result<(), String> {
368 fn is_shallow(&self, target_dir: &CacheDir) -> Result<bool, String> {
387 let is_shallow = String::from_utf8_lossy(&output.stdout).trim() == "true";
391 fn fetch_all(&self, target_dir: &CacheDir) -> Result<(), String> {
418 fn pull(&self, target_dir: &CacheDir) -> Result<(), String> {
497 url: String,
502 pub fn new(url: String) -> Self {
537 pub fn download_unzip(&self, target_dir: &CacheDir) -> Result<(), String> {
574 archive_name: String,
612 pub fn unzip(&self) -> Result<(), String> {