Fetch plugin logs from server (#193)

Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
This commit is contained in:
Ben Schumacher 2024-01-30 16:49:59 +01:00 committed by GitHub
parent de0b31b48a
commit 8dd6e7c187
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 404 additions and 1 deletions

View file

@ -57,6 +57,10 @@ func pluginctl() error {
return enablePlugin(ctx, client, os.Args[2])
case "reset":
return resetPlugin(ctx, client, os.Args[2])
case "logs":
return logs(ctx, client, os.Args[2])
case "logs-watch":
return watchLogs(context.WithoutCancel(ctx), client, os.Args[2]) // Keep watching forever
default:
return errors.New("invalid second argument")
}