mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2026-02-04 08:18:34 +00:00
feat(GODT-2555): add local telemetry settings.
feat(GODT-2555): add 'TelemetryDisabled' settings to vault. feat(GODT-2555): CLI and GUI implementation. feat(GODT-2555): implemented setting in bridge-gui-tester. feat(GODT-2555): added unit tests. feat(GODT-2555): feature tests.
This commit is contained in:
@ -289,6 +289,23 @@ func New(
|
||||
})
|
||||
fe.AddCmd(badEventCmd)
|
||||
|
||||
// Telemetry commands
|
||||
telemetryCmd := &ishell.Cmd{
|
||||
Name: "telemetry",
|
||||
Help: "choose whether usage diagnostics are collected or not",
|
||||
}
|
||||
telemetryCmd.AddCmd(&ishell.Cmd{
|
||||
Name: "enable",
|
||||
Help: "Usage diagnostics collection will be enabled",
|
||||
Func: fe.enableTelemetry,
|
||||
})
|
||||
telemetryCmd.AddCmd(&ishell.Cmd{
|
||||
Name: "disable",
|
||||
Help: "Usage diagnostics collection will be disabled",
|
||||
Func: fe.disableTelemetry,
|
||||
})
|
||||
fe.AddCmd(telemetryCmd)
|
||||
|
||||
go fe.watchEvents(eventCh)
|
||||
|
||||
go func() {
|
||||
|
||||
Reference in New Issue
Block a user