mirror of
https://github.com/rclone/rclone.git
synced 2024-11-08 01:25:14 +01:00
20 lines
408 B
Go
20 lines
408 B
Go
package genautocomplete
|
|
|
|
import (
|
|
"github.com/rclone/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.
|
|
`,
|
|
}
|