README
¶
POSH doctl 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.MustAdd(hygen.NewCommand(l, inst.cache))
// ...
return inst, nil
}
Config
## hygen
hygen:
templatePath: .posh/scaffold
Ownbrew
To install binary locally, add:
ownbrew:
packages:
## https://github.com/jondot/hygen/releases
- name: hygen
tap: foomo/tap/jondot/hygen
version: 6.2.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
- type Config
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func (*Command) Description ¶
Click to show internal directories.
Click to hide internal directories.