posh-providers/oven-sh/bun
2025-04-08 09:16:22 +02:00
..
command.go fix(oven-sh/bun): fix parameter 2025-04-08 09:16:22 +02:00
README.md feat(oven-sh/bun): add provider 2025-01-10 07:20:20 +01:00
workspace.go feat: clear cache 2025-04-04 16:45:12 +02:00

POSH bun provider

Usage

Plugin

package main

type Plugin struct {
  l        log.Logger
  cache    cache.Cache
  commands command.Commands
}

func New(l log.Logger) (plugin.Plugin, error) {
  var err error
  inst := &Plugin{
    l:        l,
    cache:    &cache.MemoryCache{},
    commands: command.Commands{},
  }

  // ...

  // ...

  inst.commands.Add(bun.NewCommand(l, inst.cache))

  // ...

  return inst, nil
}