pub enum FixCommand {
CopyFile {
src: String,
dst: String,
},
RunCommand {
cmd: String,
args: Vec<String>,
},
CreateFile {
path: String,
content: String,
},
KillProcess {
pid: u32,
},
DeleteFile {
path: String,
},
}Expand description
The concrete action a Fix performs, expressed against the repo root.
Variants§
CopyFile
Copy src (relative to the repo root) to dst.
RunCommand
Run a program with arguments (e.g. npm install).
CreateFile
Write content to path with .gitignore-style defaults.
KillProcess
Terminate the process with the given PID (platform-aware).
DeleteFile
Remove a file relative to the repo root.
Trait Implementations§
Source§impl Clone for FixCommand
impl Clone for FixCommand
Source§impl Debug for FixCommand
impl Debug for FixCommand
impl Eq for FixCommand
Source§impl PartialEq for FixCommand
impl PartialEq for FixCommand
impl StructuralPartialEq for FixCommand
Auto Trait Implementations§
impl Forget for FixCommand
impl Freeze for FixCommand
impl RefUnwindSafe for FixCommand
impl Send for FixCommand
impl Sync for FixCommand
impl Unpin for FixCommand
impl UnsafeUnpin for FixCommand
impl UnwindSafe for FixCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more