mirror of
https://github.com/foomo/posh-providers.git
synced 2025-10-16 12:35:41 +00:00
The missing property named 'configKey' was added to the Command struct in the Hygen command file. This additional parameter adjusts the structure initialization, providing more flexibility and increasing its performance capacities in different contexts. |
||
|---|---|---|
| .. | ||
| command.go | ||
| config.go | ||
| README.md | ||
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