Initial release v0.1.0
This commit is contained in:
commit
b997bd6078
62 changed files with 56224 additions and 0 deletions
21
src/cli/commands/service.rs
Normal file
21
src/cli/commands/service.rs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
use std::io;
|
||||
|
||||
use crate::platform::AppPaths;
|
||||
|
||||
pub fn start(paths: &AppPaths) -> Result<(), io::Error> {
|
||||
crate::application::start(paths)?;
|
||||
crate::application::status(paths)
|
||||
}
|
||||
|
||||
pub fn stop(paths: &AppPaths) -> Result<(), io::Error> {
|
||||
crate::application::stop(paths)
|
||||
}
|
||||
|
||||
pub fn restart(paths: &AppPaths) -> Result<(), io::Error> {
|
||||
crate::application::restart(paths)?;
|
||||
crate::application::status(paths)
|
||||
}
|
||||
|
||||
pub fn list(paths: &AppPaths, keyword: Option<&str>) -> Result<(), io::Error> {
|
||||
crate::application::list(paths, keyword)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue