schultyy / os_type

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

Add OS Version? #12

Closed drusellers closed 7 years ago

schultyy commented 7 years ago

@drusellers Hi, do you have thoughts on how the OS Version should be made available?

drusellers commented 7 years ago

I'm just starting to dig into linux land, so I'm at a bit of a loss - but I've been toying with uname but my guess is that may not be the best way. Hmm

drusellers commented 7 years ago

lsb_release -r / lsb_release -a if its available is nice. I'm assuming you want to support multiple OS's so I'm guessing we will need to have a few different branches. On windows one way is ver for CMD - and Powershell (using WMI) (Get-CimInstance Win32_OperatingSystem).version

schultyy commented 7 years ago

Version 1.0.0 now has version support included :tada: Unfortunately I had to pull out Windows though because I don't have any Windows machine at hand to test this properly.