Utils/uname.ps1

Register-GnuUtil @{
    Name        = 'uname'
    Category    = 'User and system info'
    Synopsis    = 'Print system information.'
    Usage       = @('uname [OPTION]...')
    Description = @('Print certain system information. With no OPTION, same as -s.')
    Options     = @(
        @{ Short = 'a'; Long = 'all'; Help = 'print all information, in the following order, except omit -p and -i if unknown:' }
        @{ Short = 's'; Long = 'kernel-name'; Help = 'print the kernel name' }
        @{ Short = 'n'; Long = 'nodename'; Help = 'print the network node hostname' }
        @{ Short = 'r'; Long = 'kernel-release'; Help = 'print the kernel release' }
        @{ Short = 'v'; Long = 'kernel-version'; Help = 'print the kernel version' }
        @{ Short = 'm'; Long = 'machine'; Help = 'print the machine hardware name' }
        @{ Short = 'p'; Long = 'processor'; Help = 'print the processor type (non-portable)' }
        @{ Short = 'i'; Long = 'hardware-platform'; Help = 'print the hardware platform (non-portable)' }
        @{ Short = 'o'; Long = 'operating-system'; Help = 'print the operating system' }
    )
    Notes       = @('PowerShell note: on Windows the kernel name is Windows_NT and the operating system is Windows.')
}