system-uname

Version, currently 0.2.05 versions

github.com/djberg96/crystal-sys-uname

An interface for getting OS information

4 stars
0 dependents
License: MIT

Nothing has been indexed for 0.2.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

# Add this to your shard.yml
dependencies:
  system-uname:
    github: djberg96/crystal-sys-uname
    version: ~> 0.2.0

Then run:

shards install

shard.yml

No shard.yml has been indexed for 0.2.0. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

system-uname

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:
  system-uname:
    github: djberg96/crystal-sys-uname

Synopsis

require "system-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 and FreeBSD only
p System.domainname # Linux only

Supported Platforms

  • Linux
  • Darwin
  • FreeBSD

Future Plans

Add MS Windows support

Copyright

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

Author

Daniel J. Berger