posh-providers/jondot/hygen
Kevin Franklin Kim 4588a19b45
feat: add schema
2025-04-04 16:44:08 +02:00
..
command.go Add missing configKey to Command struct in Hygen 2023-12-13 08:03:46 +01:00
config_test.go feat: add schema 2025-04-04 16:44:08 +02:00
config.go feat: add schema 2025-04-04 16:44:08 +02:00
config.schema.json feat: add schema 2025-04-04 16:44:08 +02:00
README.md docs: simplify docs 2023-12-05 14:10:17 +01:00

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