diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-04-09 20:42:08 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-04-11 09:48:56 +0200 |
commit | e26a8b242a6434117d089a0799238add7025dbf4 (patch) | |
tree | f6578e4eab781a641b17522dc0d89dd1bbd2a347 /commands/gendocshelper.go | |
parent | 2a2c9838671b5401331d20f8c72e2b934fe34e8d (diff) |
commands: Make the list commands non-global
See #4598
Diffstat (limited to 'commands/gendocshelper.go')
-rw-r--r-- | commands/gendocshelper.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/commands/gendocshelper.go b/commands/gendocshelper.go index ca781242e..e98bfde79 100644 --- a/commands/gendocshelper.go +++ b/commands/gendocshelper.go @@ -23,11 +23,19 @@ import ( "github.com/spf13/cobra" ) +var ( + _ cmder = (*genDocsHelper)(nil) +) + type genDocsHelper struct { target string cmd *cobra.Command } +func (c *genDocsHelper) getCommand() *cobra.Command { + return c.cmd +} + func createGenDocsHelper() *genDocsHelper { g := &genDocsHelper{ cmd: &cobra.Command{ |