openhue / openhue-cli

OpenHue CLI is a command-line interface for interacting with Philips Hue smart lighting systems.
https://www.openhue.io/cli
Apache License 2.0
41 stars 6 forks source link

OpenHUE-CLI make generate error : oapi-gencode missing #47

Closed jmma59 closed 2 months ago

jmma59 commented 6 months ago

Hi, I am trying to discover your openhue-CLI tools. I have folowed discribed procedure to deploy localy.

During install I have mistake :

Requirement : OK

Download openhue-cli OK

make generate
Code generation from https://api.redocly.com/registry/bundle/openhue/openhue/v2/openapi.yaml?branch=main

/bin/sh: 1: oapi-codegen: not found
make: *** [Makefile:24 : generate] Erreur 127

Could you help me please ? Have a nice day

thibauult commented 5 months ago

Hi @jmma59,

Thanks for opening this issue!

The make generate command requires to install oapi-codegen tool. Can you please try to install it using:

go install github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@latest

and then try again to the make generate command?

If it works I will update the project README accordingly.

thibauult commented 2 months ago

Fixed by https://github.com/openhue/openhue-cli/pull/58