rclone/rclone

Custom Completions in Go

Aberta

#4.443 aberto em 17 de jul. de 2020

 (2 comentários) (0 reação) (0 responsável)Go (5.090 forks)batch import
UXenhancementhelp wanted

Métricas do repositório

Stars
 (57.185 estrelas)
Métricas de merge de PR
 (Mesclagem média 32d 20h) (23 fundiu PRs em 30d)

Description

What is your current rclone version (output from rclone version)?

N/A

What problem are you are trying to solve?

Custom Completions defined in Go to make it work for both Bash & Zsh (and any other shells supported by cobra).

How do you think rclone should be changed to solve that?

Cobra has recently added support for custom completions in go instead of directly in bash or zsh and these completions are automatically translated for all the shells supported. Once we have migrated the custom completion from bash to go, then zsh remote completions should also start working.

References: https://github.com/spf13/cobra/pull/1035 - Custom Completions in Go - Included in 1.0.0 https://github.com/spf13/cobra/pull/1070 - ZSH Support for the above - Included in the latest master branch https://github.com/spf13/cobra/issues/107

Guia do colaborador