You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tying to play around with rfswift, I discovered that the wrapper generated completions scripts won't work (produced by rfswift completion).
I only tested on Linux with bash but I assume this won't work for any shell because scripts are embedding the cli greeter (the beautiful ASCII art) and the version information line.
Experiments to reproduce
1. The naive try
Here I try to generate the bash completion script but the header is printed on stdout :
This result on these types of errors when resourcing the shell because it try to parse ASCII art chars :
[...]
bash: $'\E[33m': command not found
bash: $'\E[32m': command not found
bash: $'\E[36m': command not found
bash: $'\E[34m\E[0m': command not found
bash: $'\E[35m': command not found
bash: $'\E[31m': command not found
bash: $'\E[35m\E[0m': command not found
bash: $'\E[31m': command not found
bash: $'\E[33m\E[0m': command not found
bash: /etc/bash_completion.d/rfswift: line 45: syntax error near unexpected token `('bash: /etc/bash_completion.d/rfswift: line 45: `[+] You are running version: 0.5.5 (Up to date)'vh ~❯
2. Second fail
I also tried to strip this header to the completion script only, this obviously stop the errors on shell sourcing but I caught this error when tabbing after rfswift :
Hmm that is a feature I never used to be honest as it is generated with the Go module cobra... I will try to fix it or maybe provide a clean auto completion on an independent file during install with install.sh :)
Hey,
Tying to play around with rfswift, I discovered that the wrapper generated completions scripts won't work (produced by
rfswift completion
).I only tested on Linux with bash but I assume this won't work for any shell because scripts are embedding the cli greeter (the beautiful ASCII art) and the version information line.
Experiments to reproduce
1. The naive try
2. Second fail
rfswift
:Note on setup
Conclusion
completion
one).Thanks for your work on this 💌
The text was updated successfully, but these errors were encountered: