get.porter.sh/porter@v1.3.0/cmd/exec/lint.go (about) 1 package main 2 3 import ( 4 "get.porter.sh/porter/pkg/exec" 5 "github.com/spf13/cobra" 6 ) 7 8 func buildLintCommand(m *exec.Mixin) *cobra.Command { 9 cmd := &cobra.Command{ 10 Use: "lint", 11 Short: "Check sections of the bundle associated with this mixin for problems and adherence to best practices", 12 RunE: func(cmd *cobra.Command, args []string) error { 13 return m.PrintLintResults(cmd.Context()) 14 }, 15 } 16 return cmd 17 }