Skip to content

Commit

Permalink
genautocomplete: rename to completion with alias to old name
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ncw committed May 25, 2023
1 parent fc798d8 commit 51a468b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/genautocomplete/genautocomplete.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func init() {
}

var completionDefinition = &cobra.Command{
Use: "genautocomplete [shell]",
Use: "completion [shell]",
Short: `Output completion script for a given shell.`,
Long: `
Generates a shell completion script for rclone.
Expand All @@ -20,4 +20,5 @@ Run with ` + "`--help`" + ` to list the supported shells.
Annotations: map[string]string{
"versionIntroduced": "v1.33",
},
Aliases: []string{"genautocomplete"},
}

0 comments on commit 51a468b

Please sign in to comment.