user_group.cr v0.1.5

Adds System Users and Groups.

user_group.cr

Docs GitHub release Build Status

Adds System Users and Groups.

Installation

Add this to your application's shard.yml:

dependencies:
  user_group:
    github: chris-huxtable/user_group.cr

Usage

require "user_group"

Adds features like:

  • Process.become(System::User.get("nobody"))
  • Process.become(System::Group.get("nobody"))
  • Process.user
  • Process.group
  • System::User.get("root").shell
  • System::Group.get("wheel").members
  • a_pointer.to_slice_null_terminated(a_limit) (useful for converting the Char** to an Array(String))

Contributing

  1. Fork it ( https://github.com/chris-huxtable/user_group.cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

user_group.cr

Owner
Statistic
  • 4
  • 1
  • 1
  • 4
  • 0
  • over 4 years ago
  • May 1, 2018
License

ISC License

Links
Synced at

Thu, 07 Nov 2024 04:49:45 GMT

Languages