github.com/kubeshop/testkube@v1.17.23/cmd/kubectl-testkube/commands/common/validator/directory.go (about)

     1  package validator
     2  
     3  import (
     4  	"errors"
     5  
     6  	"github.com/spf13/cobra"
     7  )
     8  
     9  func ManifestsDirectory(cmd *cobra.Command, args []string) error {
    10  	if len(args) < 1 {
    11  		return errors.New("please pass directory with manifest files as argument")
    12  	}
    13  	return nil
    14  }