From f4d3cfb204967d034a52997b0d5bc297c13034d0 Mon Sep 17 00:00:00 2001 From: Arthur Mello Date: Wed, 25 Jul 2018 15:50:16 -0300 Subject: [PATCH] Add comments to fix lint messages --- cmd/svcat/class/create_cmd.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/svcat/class/create_cmd.go b/cmd/svcat/class/create_cmd.go index e0f8a86abae..002e6f4ba3c 100644 --- a/cmd/svcat/class/create_cmd.go +++ b/cmd/svcat/class/create_cmd.go @@ -24,6 +24,7 @@ import ( "github.com/spf13/cobra" ) +// CreateCmd contains the information needed to create a new class type CreateCmd struct { *command.Context Name string @@ -50,6 +51,7 @@ func NewCreateCmd(cxt *command.Context) *cobra.Command { return cmd } +// Validate checks that the required arguments have been provided func (c *CreateCmd) Validate(args []string) error { if len(args) <= 0 { return fmt.Errorf("new class name should be provided") @@ -60,6 +62,7 @@ func (c *CreateCmd) Validate(args []string) error { return nil } +// Calls out to the pkg lib to create the class and displays the output func (c *CreateCmd) Run() error { class, err := c.App.RetrieveClassByName(c.From) if err != nil {