github.com/xhghs/rclone@v1.51.1-0.20200430155106-e186a28cced8/cmd/genautocomplete/genautocomplete.go (about)

     1  package genautocomplete
     2  
     3  import (
     4  	"github.com/rclone/rclone/cmd"
     5  	"github.com/spf13/cobra"
     6  )
     7  
     8  func init() {
     9  	cmd.Root.AddCommand(completionDefinition)
    10  }
    11  
    12  var completionDefinition = &cobra.Command{
    13  	Use:   "genautocomplete [shell]",
    14  	Short: `Output completion script for a given shell.`,
    15  	Long: `
    16  Generates a shell completion script for rclone.
    17  Run with --help to list the supported shells.
    18  `,
    19  }