22 lines
550 B
Rust
22 lines
550 B
Rust
|
use std::error::Error;
|
||
|
use std::path::PathBuf;
|
||
|
use crate::service::ServiceManager;
|
||
|
|
||
|
pub struct OSXServiceManager {}
|
||
|
impl ServiceManager for OSXServiceManager {
|
||
|
fn install(&self, bin_path: PathBuf, name: &str, server_url: &str) -> Result<(), Box<dyn Error>> {
|
||
|
todo!()
|
||
|
}
|
||
|
|
||
|
fn uninstall(&self, name: &str) -> Result<(), Box<dyn Error>> {
|
||
|
todo!()
|
||
|
}
|
||
|
|
||
|
fn start(&self, name: &str) -> Result<(), Box<dyn Error>> {
|
||
|
todo!()
|
||
|
}
|
||
|
|
||
|
fn stop(&self, name: &str) -> Result<(), Box<dyn Error>> {
|
||
|
todo!()
|
||
|
}
|
||
|
}
|