-// Copyright (C) 2021 Simon Ruderich
+// Copyright (C) 2021-2023 Simon Ruderich
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
},
[][]byte{nil},
[]error{nil},
- []*exec.Cmd{&exec.Cmd{
+ []*exec.Cmd{{
Path: "/bin/systemctl",
Args: []string{
"/bin/systemctl",
},
[][]byte{nil},
[]error{nil},
- []*exec.Cmd{&exec.Cmd{
+ []*exec.Cmd{{
Path: "/bin/systemctl",
Args: []string{
"/bin/systemctl",
},
[][]byte{nil},
[]error{nil},
- []*exec.Cmd{&exec.Cmd{
+ []*exec.Cmd{{
Path: "/bin/systemctl",
Args: []string{
"/bin/systemctl",
[]byte("fake stderr"),
},
[]error{nil, nil, nil, nil},
- []*exec.Cmd{&exec.Cmd{
+ []*exec.Cmd{{
Path: "/bin/systemctl",
Args: []string{
"/bin/systemctl",
},
Stdout: &bytes.Buffer{},
Stderr: &bytes.Buffer{},
- }, &exec.Cmd{
+ }, {
Path: "/bin/systemctl",
Args: []string{
"/bin/systemctl",
},
Stdout: &bytes.Buffer{},
Stderr: &bytes.Buffer{},
- }, &exec.Cmd{
+ }, {
Path: "/bin/systemctl",
Args: []string{
"/bin/systemctl",
},
Stdout: &bytes.Buffer{},
Stderr: &bytes.Buffer{},
- }, &exec.Cmd{
+ }, {
Path: "/bin/systemctl",
Args: []string{
"/bin/systemctl",
},
[][]byte{nil},
[]error{nil},
- []*exec.Cmd{&exec.Cmd{
+ []*exec.Cmd{{
Path: "/bin/systemctl",
Args: []string{
"/bin/systemctl",
nil,
fmt.Errorf("fake error"),
},
- []*exec.Cmd{&exec.Cmd{
+ []*exec.Cmd{{
Path: "/bin/systemctl",
Args: []string{
"/bin/systemctl",
},
Stdout: &bytes.Buffer{},
Stderr: &bytes.Buffer{},
- }, &exec.Cmd{
+ }, {
Path: "/bin/systemctl",
Args: []string{
"/bin/systemctl",
},
Stdout: &bytes.Buffer{},
Stderr: &bytes.Buffer{},
- }, &exec.Cmd{
+ }, {
Path: "/bin/systemctl",
Args: []string{
"/bin/systemctl",