From 539913257a37bedfc86e39c2637c03d317a8c91c Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Wed, 7 Aug 2024 14:08:57 +0500 Subject: [PATCH] lint --- cmd/zetacored/docs.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/zetacored/docs.go b/cmd/zetacored/docs.go index bf6dd13a35..302abc079f 100644 --- a/cmd/zetacored/docs.go +++ b/cmd/zetacored/docs.go @@ -1,9 +1,10 @@ package main import ( - "os" "bytes" + "os" "strings" + "github.com/spf13/cobra" "github.com/spf13/cobra/doc" ) @@ -80,12 +81,11 @@ func GenMarkdownToSingleFile(cmd *cobra.Command, w *os.File) error { return nil } - func docsCommand() *cobra.Command { cmd := &cobra.Command{ Use: "docs [path]", Short: "Generate markdown documentation for zetacored", - RunE: docsCmd, + RunE: docsCmd, Args: cobra.MaximumNArgs(1), }