This commit introduces the usage of wgctrl. It avoids the usage of exec calls of the wg command and parsing the output of `wg show`. Signed-off-by: leonnicolas <leonloechner@gmx.de>
21 lines
331 B
Plaintext
21 lines
331 B
Plaintext
// +build !linux
|
|
|
|
package main
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func connect() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "connect",
|
|
Short: "not supporred on you OS",
|
|
RunE: func(_ *cobra.Command, _ []string) error {
|
|
return errors.New("this command is not supported on your OS")
|
|
},
|
|
}
|
|
return cmd
|
|
}
|