mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 09:54:44 +01:00
genautocomplete: rename to completion with alias to old name
This brings it into line with cobra's naming scheme and stops cobra writing another "completion" command which doesn't work as well which confuses users. See: https://forum.rclone.org/t/rclone-genautocomplete-bash-vs-rclone-completion-bash-neither-works-fully/38431
This commit is contained in:
parent
fc798d800c
commit
51a468b2ba
@ -11,7 +11,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var completionDefinition = &cobra.Command{
|
var completionDefinition = &cobra.Command{
|
||||||
Use: "genautocomplete [shell]",
|
Use: "completion [shell]",
|
||||||
Short: `Output completion script for a given shell.`,
|
Short: `Output completion script for a given shell.`,
|
||||||
Long: `
|
Long: `
|
||||||
Generates a shell completion script for rclone.
|
Generates a shell completion script for rclone.
|
||||||
@ -20,4 +20,5 @@ Run with ` + "`--help`" + ` to list the supported shells.
|
|||||||
Annotations: map[string]string{
|
Annotations: map[string]string{
|
||||||
"versionIntroduced": "v1.33",
|
"versionIntroduced": "v1.33",
|
||||||
},
|
},
|
||||||
|
Aliases: []string{"genautocomplete"},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user