mirror of
https://github.com/foomo/posh-providers.git
synced 2025-10-16 12:35:41 +00:00
| .. | ||
| command.go | ||
| README.md | ||
| workspace.go | ||
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
}