зеркало из https://github.com/github/ruby.git
[ruby/optparse] Add EditorConfig file
More info here: https://editorconfig.org/ For example, `ruby/ruby` has it: https://github.com/ruby/ruby/blob/05ebaee/.editorconfig Also fix some offenses. https://github.com/ruby/optparse/commit/29402e7e0e
This commit is contained in:
Родитель
908785ef6d
Коммит
2afbe7113a
|
@ -17,5 +17,5 @@ _rb_optparse() {
|
|||
}
|
||||
|
||||
rb_optparse () {
|
||||
[ $# = 0 ] || complete -o default -F _rb_optparse "$@"
|
||||
[ $# = 0 ] || complete -o default -F _rb_optparse "$@"
|
||||
}
|
||||
|
|
|
@ -25,8 +25,8 @@ generate-complete-function/ruby/optparse ()
|
|||
mkdir -p "${ZSH_COMPLETION_DIR-$HOME/.zsh.d/Completion}"
|
||||
$1 "--*-completion-zsh=${1:t}" >! "${ZSH_COMPLETION_DIR-$HOME/.zsh.d/Completion}/$cmpl"
|
||||
if [[ $(type -w "$cmpl") == "${cmpl}: function" ]]; then
|
||||
unfunction "$cmpl"
|
||||
autoload -U "$cmpl"
|
||||
unfunction "$cmpl"
|
||||
autoload -U "$cmpl"
|
||||
else
|
||||
compinit "$cmpl"
|
||||
fi
|
||||
|
|
|
@ -196,4 +196,3 @@ class TestOptionParser::Acceptable < TestOptionParser
|
|||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче