mirror of
https://github.com/foomo/posh-providers.git
synced 2025-10-16 12:35:41 +00:00
| .. | ||
| command.go | ||
| README.md | ||
POSH Zeus provider
Usage
Plugin
package plugin
type Plugin struct {
l log.Logger
c cache.Cache
commands command.Commands
}
func New(l log.Logger) (plugin.Plugin, error) {
inst := &Plugin{
l: l,
c: cache.MemoryCache{},
commands: command.Commands{},
}
// ...
inst.commands.Add(zeus.NewCommand(l, inst.c))
// ...
return inst, nil
}
Ownbrew
To install binary locally, add:
ownbrew:
packages:
- name: zeus
tap: foomo/tap/dreadl0ck/zeus
version: 0.9.11