From 37746023c1395213a8bf1fd363fa8f9dd11b8a0c Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Mon, 1 Nov 2021 12:18:41 +0200 Subject: [PATCH] Enable completion for flux tree cmd Signed-off-by: Stefan Prodan --- cmd/flux/tree_kustomization.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/flux/tree_kustomization.go b/cmd/flux/tree_kustomization.go index d3d43ec6..c0cd03e5 100644 --- a/cmd/flux/tree_kustomization.go +++ b/cmd/flux/tree_kustomization.go @@ -50,7 +50,8 @@ var treeKsCmd = &cobra.Command{ # Print the Flux resources managed by the root Kustomization flux tree kustomization flux-system --compact`, - RunE: treeKsCmdRun, + RunE: treeKsCmdRun, + ValidArgsFunction: resourceNamesCompletionFunc(kustomizev1.GroupVersion.WithKind(kustomizev1.KustomizationKind)), } type TreeKsFlags struct {