File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 77</div >
88
99> [ !WARNING]
10- > This branch is still in development and may be unstable. Only ` systemd ` and ` journald ` is supported at the moment .
10+ > This project is still in development and may be unstable. Only ` systemd ` and ` journald ` is supported.
1111
1212# Install:
1313
1616``` bash
1717cargo install crescent-cli
1818# # or
19- cargo install --git https://github.com/Kyagara/crescent --branch rewrite
19+ cargo install --git https://github.com/Kyagara/crescent
2020```
2121
2222# Todo
2323
24- Reimplementation of features already in the main branch :
24+ Reimplementation of old features :
2525
2626- Tests.
2727- ` stop ` field on profiles and ` start ` command, a command to be sent to trigger a shutdown of the application.
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ static USER_DIR: Lazy<String> = Lazy::new(|| {
1919 path
2020} ) ;
2121
22- const SYSTEM_DIR : & str = concat ! ( "/etc/systemd/system/" ) ;
22+ const SYSTEM_DIR : & str = "/etc/systemd/system/" ;
2323
2424/// `systemd` implementation.
2525pub struct Systemd {
@@ -197,10 +197,7 @@ impl InitSystem for Systemd {
197197 }
198198
199199 fn status ( & self , raw : bool ) -> Result < StatusOutput > {
200- let output = match self . run_command ( vec ! [ "status" , & self . service_name] ) {
201- Ok ( output) => output,
202- Err ( err) => return Err ( err) ,
203- } ;
200+ let output = self . run_command ( vec ! [ "status" , & self . service_name] ) ?;
204201
205202 let stdout = String :: from_utf8 ( output. stdout ) ?;
206203 if raw {
You can’t perform that action at this time.
0 commit comments