From 6d1c20b59e3faa0e5c29fccd72853a64e5566384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Thu, 28 Sep 2023 23:21:42 +0200 Subject: [PATCH] more rename MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché --- README.md | 8 ++++---- pkg/commands/root.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 91aaba36..82db45de 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# tf-kyverno +# json-kyverno ## create a terraform plan in json format @@ -13,14 +13,14 @@ terraform plan -out=tf.plan terraform show -json tf.plan > tf.plan.json ``` -## build tf-kyverno +## build json-kyverno ```console make build ``` -## invoke tf-kyverno +## invoke json-kyverno ```console -./tf-kyverno --plan ./tf.plan.json --policy ./policy.yaml +./json-kyverno --plan ./tf.plan.json --policy ./policy.yaml ``` diff --git a/pkg/commands/root.go b/pkg/commands/root.go index abce4a28..58734f1a 100644 --- a/pkg/commands/root.go +++ b/pkg/commands/root.go @@ -51,14 +51,14 @@ func (c *command) Run(cmd *cobra.Command, _ []string) error { func NewRootCommand() *cobra.Command { var command command cmd := &cobra.Command{ - Use: "tf-kyverno", - Short: "tf-kyverno", - Long: "tf-kyverno is a CLI tool to apply policies to terraform plans", + Use: "json-kyverno", + Short: "json-kyverno", + Long: "json-kyverno is a CLI tool to apply policies to json resources", Args: cobra.NoArgs, RunE: command.Run, SilenceUsage: true, } cmd.Flags().StringVar(&command.plan, "plan", "", "Path to terraform plan file (in json format)") - cmd.Flags().StringSliceVar(&command.policies, "policy", nil, "Path to tf-kyverno policies") + cmd.Flags().StringSliceVar(&command.policies, "policy", nil, "Path to json-kyverno policies") return cmd }