21 lines
333 B
Go
21 lines
333 B
Go
package cli
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/qdm12/golibs/os"
|
|
)
|
|
|
|
type CLI interface {
|
|
ClientKey(args []string, openFile os.OpenFileFunc) error
|
|
HealthCheck(ctx context.Context) error
|
|
OpenvpnConfig(os os.OS) error
|
|
Update(ctx context.Context, args []string, os os.OS) error
|
|
}
|
|
|
|
type cli struct{}
|
|
|
|
func New() CLI {
|
|
return &cli{}
|
|
}
|