1
mirror of https://github.com/rclone/rclone synced 2024-12-01 10:31:57 +01:00
rclone/cmd/genautocomplete/genautocomplete.go

24 lines
542 B
Go
Raw Normal View History

// Package genautocomplete provides the genautocomplete command.
package genautocomplete
import (
"github.com/rclone/rclone/cmd"
"github.com/spf13/cobra"
)
func init() {
2017-08-31 16:52:51 +02:00
cmd.Root.AddCommand(completionDefinition)
}
2017-08-31 16:52:51 +02:00
var completionDefinition = &cobra.Command{
Use: "genautocomplete [shell]",
Short: `Output completion script for a given shell.`,
Long: `
2017-08-31 16:52:51 +02:00
Generates a shell completion script for rclone.
Run with ` + "`--help`" + ` to list the supported shells.
`,
Annotations: map[string]string{
"versionIntroduced": "v1.33",
},
}