distributable:
  url: git+https://github.com/ahmetb/kubectx.git
  ref: ${{version.tag}}

versions:
  github: ahmetb/kubectx
  ignore: /^v?0\.[0-8](\.|$)/ # prior to 0.9 kubectx was a bash script

provides:
  - bin/kubectx
  - bin/kubens

dependencies:
  github.com/junegunn/fzf: '*'

build:
  dependencies:
    go.dev: ^1.20
  env:
    CGO_ENABLED: '0'
  script:
    - go build -o '{{ prefix }}/bin/kubectx' ./cmd/kubectx
    - go build -o '{{ prefix }}/bin/kubens' ./cmd/kubens

test:
  - kubectx --help
  - kubens --help
