mirror of
https://github.com/taigrr/systemctl.git
synced 2025-10-06 08:47:02 +08:00
add success case to tests
This commit is contained in:
@@ -36,7 +36,6 @@ func Stop(ctx context.Context, unit string, usermode bool) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// TODO
|
||||
func Enable(ctx context.Context, unit string, usermode bool) error {
|
||||
var args = []string{"enable", "--system", unit}
|
||||
if usermode {
|
||||
@@ -56,7 +55,6 @@ func Enable(ctx context.Context, unit string, usermode bool) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// TODO
|
||||
func Disable(ctx context.Context, unit string, usermode bool) error {
|
||||
var args = []string{"disable", "--system", unit}
|
||||
if usermode {
|
||||
|
Reference in New Issue
Block a user