refactor to decouple commands form entrypoint for reusability and centralizing commands.
Increase reusability and composition
This commit is contained in:
12
internal/commands/survey/submit.go
Normal file
12
internal/commands/survey/submit.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package surveyCmd
|
||||
|
||||
import "github.com/spf13/cobra"
|
||||
|
||||
var SubmitCmd = &cobra.Command{
|
||||
Use: "submit",
|
||||
Short: "Submit your survey responses",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
cmd.Println("Submitting responses and metrics...")
|
||||
return nil
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user