crystal-uname

A Crystal library for getting operating system information

Description

A Crystal interface for getting operating system information. The name comes from the Unix 'uname' command.

Installation

Add this to your shard.yml file:

dependencies:
  uname:
    github: djberg96/crystal-uname

Synopsis

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

Supported Platforms

  • Linux
  • Darwin

Future Plans

Add MS Windows support

Copyright

(C) 2021, Daniel J. Berger All Rights Reserved

Author

Daniel J. Berger

Repository

crystal-uname

Owner
Statistic
  • 2
  • 0
  • 0
  • 0
  • 0
  • almost 2 years ago
  • February 7, 2021
License

Apache License 2.0

Links
Synced at

Fri, 17 May 2024 15:16:13 GMT

Languages