18 lines
328 B
Go
18 lines
328 B
Go
package cmd
|
|
|
|
import (
|
|
"forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/Daniel.Sy/loic-go/pkg/loic"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var stopCmd = &cobra.Command{
|
|
Use: "stop",
|
|
Short: "Stoppt den aktuellen Lasttest",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
loic.StopTest()
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(stopCmd)
|
|
}
|