schultyy / os_type

Rust library to detect the operating system type
MIT License
30 stars 18 forks source link

Add version information #13

Closed schultyy closed 7 years ago

schultyy commented 7 years ago

Resolves #12

os_type::current_platform now also returns the operating system version which is either fetched from lsb_release, /etc/redhat-release, /etc/centos-release or sw_vers.

Note that is PR contains breaking changes because a) the return type of os_type::current_platform has changed b) There is no Windows support anymore because I don't have any machine where I could test this on