rclone/cmd/genautocomplete/genautocomplete.go
2017-08-31 16:21:28 +01:00

20 lines
393 B
Go

package genautocomplete
import (
"github.com/ncw/rclone/cmd"
"github.com/spf13/cobra"
)
func init() {
cmd.Root.AddCommand(completionDefinition)
}
var completionDefinition = &cobra.Command{
Use: "genautocomplete [shell]",
Short: `Output completion script for a given shell.`,
Long: `
Generates a shell completion script for rclone.
Run with --help to list the supported shells.
`,
}