Fetch plugin logs from server (#193)
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
This commit is contained in:
parent
de0b31b48a
commit
8dd6e7c187
6 changed files with 404 additions and 1 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Reference in a new issue