/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/update-test-cmd-list
14 строк
366 B
Koichi Murase
test(runLint): adjust harmless codes
02 апр 2026, 23:08
02 апр 2026, 23:08
1309562
Код
Авторство
О чём код?
#!/usr/bin/env bash set -eu mydir=$( command cd "$(dirname "$0")" pwd ) cat "$mydir"/t/test_*.py | tr -d '\n' | command grep -Eo '@pytest.mark.complete\(([^)]*\<require_(cmd|longopt) *= *True\>[^)]*)\)' | command sed -ne 's/^[^"]*"\\\{0,1\}\([^_][^[:space:]"]*\)[[:space:]"].*/\1/p' | LC_ALL=C sort -u \ >"$mydir"/test-cmd-list.txt