From c38aa053881e1ee6f9bd08ffd5fd5fe0db3a321d Mon Sep 17 00:00:00 2001 From: Mateusz Hawrus Date: Mon, 17 Jun 2024 15:50:06 +0200 Subject: [PATCH] correct readme --- internal/cmd/objectimpl/README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/cmd/objectimpl/README.md b/internal/cmd/objectimpl/README.md index 823f2c74..3fe9beec 100644 --- a/internal/cmd/objectimpl/README.md +++ b/internal/cmd/objectimpl/README.md @@ -7,6 +7,9 @@ It utilizes `text/template` to generate the code. ## Usage -```shell -go run . -o docs.yaml +Add the following `generate` directive to the file that contains the `manifest.Object` object definition. +Replace the `` with the struct name of your object, e.g. `Project`. + +```go +//go:generate go run ../../../internal/cmd/objectimpl ```