Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add parameter supported_os in sparrow.json #21

Open
spigell opened this issue Aug 20, 2017 · 0 comments
Open

add parameter supported_os in sparrow.json #21

spigell opened this issue Aug 20, 2017 · 0 comments
Assignees

Comments

@spigell
Copy link

spigell commented Aug 20, 2017

Здравствуйте. Предлагаю добавить параметр в sparrow.json для указания поддерживаемых ОС.
Это позволит выдавать ошибку на неподдерживаемую ОС еще до запуска самого плагина. Я думаю, можно было бы сделать так:
Если есть этот параметр, то sparrow дергает функцию os и сравнивает вывод с значением (или массивом) параметра. Если все ок, то выполняем плагин, если нет - выдаем ошибку.
Если параметр не указан, то считаем, что плагин везде работает.
Как вы считаете, стоит ли это делать и возможно ли?

@melezhik melezhik self-assigned this Sep 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants