github.com/henvic/wedeploycli@v1.7.6-0.20200319005353-3630f582f284/command/autocomplete/autocomplete.go (about)

     1  package autocomplete
     2  
     3  import (
     4  	"github.com/henvic/wedeploycli/autocomplete"
     5  	"github.com/spf13/cobra"
     6  )
     7  
     8  // AutocompleteCmd is used for reading the version of this tool
     9  var AutocompleteCmd = &cobra.Command{
    10  	Use:    "autocomplete",
    11  	Run:    autocompleteRun,
    12  	Short:  "Provides zsh / bash auto-completion",
    13  	Hidden: true,
    14  }
    15  
    16  func autocompleteRun(c *cobra.Command, args []string) {
    17  	autocomplete.Run(args)
    18  }