Files
gluetun/internal/cli/cli.go

22 lines
405 B
Go
Raw Normal View History

2021-02-06 16:26:23 +00:00
// Package cli defines an interface CLI to run command line operations.
package cli
2020-02-08 21:50:17 +00:00
import (
"context"
2021-01-02 01:57:00 +00:00
"github.com/qdm12/golibs/os"
2020-02-08 21:50:17 +00:00
)
type CLI interface {
ClientKey(args []string, openFile os.OpenFileFunc) error
HealthCheck(ctx context.Context) error
OpenvpnConfig(os os.OS) error
2021-01-30 17:29:27 +00:00
Update(ctx context.Context, args []string, os os.OS) error
}
type cli struct{}
func New() CLI {
return &cli{}
}