Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 16 of 16) sorted by relevance

/DADK/dadk-user/src/executor/
H A Dsource.rs124 let mut cmd = Command::new("git"); in check_repo()
125 cmd.arg("remote").arg("get-url").arg("origin"); in check_repo()
128 cmd.current_dir(path); in check_repo()
131 let proc: std::process::Child = cmd in check_repo()
153 let mut cmd = Command::new("git"); in set_url()
154 cmd.arg("remote") in set_url()
160 cmd.current_dir(path); in set_url()
163 let proc: std::process::Child = cmd in set_url()
192 let mut cmd = Command::new("git"); in checkout()
193 cmd in checkout()
122 let mut cmd = Command::new("git"); check_repo() localVariable
151 let mut cmd = Command::new("git"); set_url() localVariable
190 let mut cmd = Command::new("git"); checkout() localVariable
256 let mut cmd = Command::new("git"); clone_repo() localVariable
314 let mut cmd = Command::new("git"); set_fetch_config() localVariable
342 let mut cmd = Command::new("git"); unshallow() localVariable
367 let mut cmd = Command::new("git"); is_shallow() localVariable
391 let mut cmd = Command::new("git"); fetch_all() localVariable
423 let mut cmd = Command::new("git"); pull() localVariable
618 let mut cmd = Command::new("tar"); unzip() localVariable
[all...]
H A Dsource.rs124 let mut cmd = Command::new("git"); in check_repo() localVariable
125 cmd.arg("remote").arg("get-url").arg("origin"); in check_repo()
128 cmd.current_dir(path); in check_repo()
131 let proc: std::process::Child = cmd in check_repo()
153 let mut cmd = Command::new("git"); in set_url() localVariable
154 cmd.arg("remote") in set_url()
160 cmd.current_dir(path); in set_url()
163 let proc: std::process::Child = cmd in set_url()
192 let mut cmd = Command::new("git"); in checkout() localVariable
193 cmd.current_dir(&target_dir.path); in checkout()
[all …]
H A Dmod.rs248 if let Some(cmd) = command { in install()
249 self.run_command(cmd)?; in install()
371 let cmd: Option<Command> = self.create_command()?; in create_command()
372 if cmd.is_none() { in create_command()
382 let cmd = cmd.unwrap(); in create_command()
383 self.run_command(cmd)?; in create_command()
530 .map_err(|e| ExecutorError::TaskFailed(e))?; // let mut cmd = "cp -r ".to_string(); in run_command()
303 let cmd: Option<Command> = self.create_command()?; clean_src() localVariable
314 let cmd = cmd.unwrap(); clean_src() localVariable
H A Dmod.rs248 if let Some(cmd) = command { in install()
249 self.run_command(cmd)?; in install()
371 let cmd: Option<Command> = self.create_command()?; in create_command()
372 if cmd.is_none() { in create_command()
382 let cmd = cmd.unwrap(); in create_command()
383 self.run_command(cmd)?; in create_command()
530 .map_err(|e| ExecutorError::TaskFailed(e))?; // let mut cmd = "cp -r ".to_string(); in run_command()
300 let cmd: Option<Command> = self.create_command()?; clean_src() localVariable
311 let cmd = cmd.unwrap(); clean_src() localVariable
H A Dmod.rs248 if let Some(cmd) = command { in clean()
249 self.run_command(cmd)?; in clean()
371 let cmd: Option<Command> = self.create_command()?; in create_command()
372 if cmd.is_none() { in create_command()
382 let cmd = cmd.unwrap(); in create_command()
383 self.run_command(cmd)?; in create_command()
530 .map_err(|e| ExecutorError::TaskFailed(e))?; // let mut cmd = "cp -r ".to_string(); in new()
293 let cmd: Option<Command> = self.create_command()?; clean_src() localVariable
304 let cmd = cmd.unwrap(); clean_src() localVariable
H A Dmod.rs248 if let Some(cmd) = command { in do_install()
249 self.run_command(cmd)?; in do_install()
371 let cmd: Option<Command> = self.create_command()?; in create_command()
372 if cmd.is_none() { in create_command()
382 let cmd = cmd.unwrap(); in create_command()
383 self.run_command(cmd)?; in create_command()
530 .map_err(|e| ExecutorError::TaskFailed(e))?; // let mut cmd = "cp -r ".to_string(); in run_command()
314 let cmd: Option<Command> = self.create_command()?; clean_src() localVariable
325 let cmd = cmd.unwrap(); clean_src() localVariable
H A Dmod.rs248 if let Some(cmd) = command {
249 self.run_command(cmd)?; in do_install()
371 let cmd: Option<Command> = self.create_command()?;
372 if cmd.is_none() { in src_work_dir()
382 let cmd = cmd.unwrap();
383 self.run_command(cmd)?;
530 .map_err(|e| ExecutorError::TaskFailed(e))?; // let mut cmd = "cp -r ".to_string(); in run_command()
329 let cmd: Option<Command> = self.create_command()?; clean_src() localVariable
340 let cmd = cmd.unwrap(); clean_src() localVariable
H A Dmod.rs248 if let Some(cmd) = command { in do_install()
249 self.run_command(cmd)?; in do_install()
371 let cmd: Option<Command> = self.create_command()?; in src_work_dir()
372 if cmd.is_none() { in src_work_dir()
382 let cmd = cmd.unwrap(); in create_command()
383 self.run_command(cmd)?; in create_command()
530 .map_err(|e| ExecutorError::TaskFailed(e))?; // let mut cmd = "cp -r ".to_string(); in run_command()
326 let cmd: Option<Command> = self.create_command()?; clean_src() localVariable
337 let cmd = cmd.unwrap(); clean_src() localVariable
H A Dmod.rs248 if let Some(cmd) = command { in do_build()
249 self.run_command(cmd)?; in do_build()
371 let cmd: Option<Command> = self.create_command()?; in clean_src() localVariable
372 if cmd.is_none() { in clean_src()
382 let cmd = cmd.unwrap(); in clean_src() localVariable
383 self.run_command(cmd)?; in clean_src()
/DADK/dadk-user/src/utils/
H A Dfile.rs50 let mut cmd = Command::new("cp"); in copy_dir_all()
51 cmd.arg("-r").arg("-f").arg("./").arg(dst); in copy_dir_all()
53 cmd.current_dir(src); in copy_dir_all()
56 let proc: std::process::Child = cmd in copy_dir_all()
49 let mut cmd = Command::new("cp"); copy_dir_all() localVariable
H A Dfile.rs50 let mut cmd = Command::new("cp"); in copy_dir_all() localVariable
51 cmd.arg("-r").arg("-f").arg("./").arg(dst); in copy_dir_all()
53 cmd.current_dir(src); in copy_dir_all()
56 let proc: std::process::Child = cmd in copy_dir_all()
/DADK/dadk/src/actions/
H A Duser.rs6 pub(super) fn run(ctx: &DADKExecContext, cmd: &UserCommand) -> Result<()> { in run()
10 let dadk_user_action: dadk_user::context::Action = cmd.clone().into(); in run()
/DADK/dadk-config/templates/config/actions/
H A Duser.rs
/DADK/dadk/src/actions/rootfs/
H A Ddisk_img.rs110 let cmd = Command::new("mount") in mount_unpartitioned_image() localVariable
115 if !cmd.status.success() { in mount_unpartitioned_image()
118 String::from_utf8_lossy(&cmd.stderr) in mount_unpartitioned_image()
141 let cmd = Command::new("umount") in umount() localVariable
145 match cmd { in umount()
146 Ok(cmd) => { in umount()
147 if !cmd.status.success() { in umount()
150 String::from_utf8_lossy(&cmd.stderr) in umount()
H A Dloopdev.rs71 let cmd = Command::new("losetup") in attach_by_exists() localVariable
75 let output = String::from_utf8(cmd.stdout)?; in attach_by_exists()
/DADK/dadk-user/src/console/
H A Dinteractive.rs