README
¶
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
Documentation
¶
Index ¶
- type Command
- func (c *Command) Complete(ctx context.Context, r *readline.Readline) []goprompt.Suggest
- func (c *Command) Description() string
- func (c *Command) Execute(ctx context.Context, r *readline.Readline) error
- func (c *Command) Help(ctx context.Context, r *readline.Readline) string
- func (c *Command) Name() string
- func (c *Command) Validate(ctx context.Context, r *readline.Readline) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.