From 8104668dcbe31410c258bd81b35509eb3d3ef97d Mon Sep 17 00:00:00 2001 From: Kelly Hofmann Date: Mon, 13 May 2024 10:11:24 -0700 Subject: [PATCH 1/2] remove bad template func --- cmd/pager.go | 13 +++++++++++++ cmd/resources/resources.go | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 cmd/pager.go diff --git a/cmd/pager.go b/cmd/pager.go new file mode 100644 index 00000000..407a0a83 --- /dev/null +++ b/cmd/pager.go @@ -0,0 +1,13 @@ +package cmd + +import ( + "github.com/spf13/cobra" + "ldcli/cmd/validators" +) + +func NewPagerCmd() *cobra.Command { + return &cobra.Command{ + Args: validators.Validate(), + Use: "pager", + } +} diff --git a/cmd/resources/resources.go b/cmd/resources/resources.go index 0452a85f..48a6b584 100644 --- a/cmd/resources/resources.go +++ b/cmd/resources/resources.go @@ -384,7 +384,7 @@ Available Commands:{{range $cmds}}{{if (or .IsAvailableCommand (eq .Name "help") {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{if not .AllChildCommandsHaveGroup}} Additional Commands:{{range $cmds}}{{if (and (eq .GroupID "") (or .IsAvailableCommand (eq .Name "help")))}} - {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{end}}{{end}}{{if .HasAvailableLocalFlags}}{{if gt (len WrappedRequiredFlagUsages .) 0}} + {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{end}}{{end}}{{if .HasAvailableLocalFlags}}{{if HasRequiredFlags .}} Required flags: {{WrappedRequiredFlagUsages . | trimTrailingWhitespaces}}{{end}}{{if HasOptionalFlags .}} From a4e2ac0b9bac49f3179f5d522fc97e7d7b27ea25 Mon Sep 17 00:00:00 2001 From: Kelly Hofmann Date: Mon, 13 May 2024 10:12:58 -0700 Subject: [PATCH 2/2] remove extra file --- cmd/pager.go | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 cmd/pager.go diff --git a/cmd/pager.go b/cmd/pager.go deleted file mode 100644 index 407a0a83..00000000 --- a/cmd/pager.go +++ /dev/null @@ -1,13 +0,0 @@ -package cmd - -import ( - "github.com/spf13/cobra" - "ldcli/cmd/validators" -) - -func NewPagerCmd() *cobra.Command { - return &cobra.Command{ - Args: validators.Validate(), - Use: "pager", - } -}