A CLI to get the platform of your system in Java.
java -jar platform.jar [options]
- -s - Return as string
- -c - Return as exit code (0 = Windows, 1 = Linux, 2 = Mac, 3 = Other)
java -jar platform.jar -s
Mac OS X
java -jar platform.jar -c
** Returns 2 **
This project is licenced under the GNU General Public Licence v3.0. See the LICENCE file for more information.