1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-23 21:44:44 +02:00

Make agent usable for external backends (#3270)

This commit is contained in:
qwerty287
2024-02-08 16:33:22 +01:00
committed by GitHub
parent e64d596436
commit f92f8b17a3
20 changed files with 142 additions and 104 deletions

View File

@@ -66,6 +66,10 @@ func (e *local) IsAvailable(context.Context) bool {
return true
}
func (e *local) Flags() []cli.Flag {
return Flags
}
func (e *local) Load(ctx context.Context) (*types.BackendInfo, error) {
c, ok := ctx.Value(types.CliContext).(*cli.Context)
if ok {