Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
A Crystal interface for getting operating system information. The name comes from the Unix 'uname' command.
Add this to your shard.yml file:
dependencies:
uname:
github: djberg96/crystal-uname
require "uname"
# Get full information about your system.
p System.uname
# Get individual bits of information about your system.
p System.sysname
p System.nodename
p System.release
p System.version
p System.machine
p System.model # Darwin only
p System.domainname # Linux only
Add MS Windows support
(C) 2021, Daniel J. Berger All Rights Reserved
Daniel J. Berger