|
|
|
@ -22,14 +22,18 @@ import ( |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ljanyst/peroxide/pkg/bridge" |
|
|
|
"github.com/ljanyst/peroxide/pkg/bridge" |
|
|
|
"github.com/ljanyst/peroxide/pkg/files" |
|
|
|
"github.com/ljanyst/peroxide/pkg/files" |
|
|
|
|
|
|
|
"github.com/ljanyst/peroxide/pkg/logging" |
|
|
|
"github.com/sirupsen/logrus" |
|
|
|
"github.com/sirupsen/logrus" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
var config = flag.String("config", files.ExpandTilde("~/.config/protonmail/bridge/prefs.json"), "configuration file") |
|
|
|
var config = flag.String("config", files.ExpandTilde("~/.config/protonmail/bridge/prefs.json"), "configuration file") |
|
|
|
|
|
|
|
var logLevel = flag.String("log-level", "Warning", "account name") |
|
|
|
|
|
|
|
|
|
|
|
func main() { |
|
|
|
func main() { |
|
|
|
flag.Parse() |
|
|
|
flag.Parse() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logging.SetLevel(*logLevel) |
|
|
|
|
|
|
|
|
|
|
|
b := &bridge.Bridge{} |
|
|
|
b := &bridge.Bridge{} |
|
|
|
|
|
|
|
|
|
|
|
err := b.Configure(*config) |
|
|
|
err := b.Configure(*config) |
|
|
|
|