2021-02-06 16:26:23 +00:00
|
|
|
// Package cli defines an interface CLI to run command line operations.
|
2020-06-02 23:03:18 +00:00
|
|
|
package cli
|
2020-02-08 21:50:17 +00:00
|
|
|
|
2021-07-23 18:52:38 +00:00
|
|
|
var _ CLIer = (*CLI)(nil)
|
2020-06-13 10:43:47 -04:00
|
|
|
|
2021-07-23 18:52:38 +00:00
|
|
|
type CLIer interface {
|
|
|
|
|
ClientKeyFormatter
|
|
|
|
|
HealthChecker
|
|
|
|
|
OpenvpnConfigMaker
|
|
|
|
|
Updater
|
2020-06-13 10:43:47 -04:00
|
|
|
}
|
|
|
|
|
|
2021-07-23 18:52:38 +00:00
|
|
|
type CLI struct {
|
2021-07-23 16:06:19 +00:00
|
|
|
repoServersPath string
|
|
|
|
|
}
|
2020-09-12 14:04:54 -04:00
|
|
|
|
2021-07-23 18:52:38 +00:00
|
|
|
func New() *CLI {
|
|
|
|
|
return &CLI{
|
2021-09-06 13:41:45 +00:00
|
|
|
repoServersPath: "./internal/storage/servers.json",
|
2021-07-23 16:06:19 +00:00
|
|
|
}
|
2020-08-28 08:17:04 -04:00
|
|
|
}
|