github.com/olli-ai/jx/v2@v2.0.400-0.20210921045218-14731b4dd448/pkg/cmd/options.go (about)

     1  package cmd
     2  
     3  import (
     4  	"io"
     5  
     6  	"github.com/olli-ai/jx/v2/pkg/cmd/templates"
     7  	"github.com/spf13/cobra"
     8  )
     9  
    10  // NewCmdOptions implements the options command
    11  func NewCmdOptions(out io.Writer) *cobra.Command {
    12  	cmd := &cobra.Command{
    13  		Use: "options",
    14  		Run: func(cmd *cobra.Command, args []string) {
    15  			cmd.Usage() //nolint:errcheck
    16  		},
    17  	}
    18  
    19  	templates.UseOptionsTemplates(cmd)
    20  
    21  	return cmd
    22  }