crystal-netrc
netrc
A simple library to read and write .netrc
files based on autocompletion from AI.
Installation
Add this to your application's shard.yml
:
dependencies:
netrc:
github: usiegj00/crystal-netrc
Usage
Write:
user_netrc = Netrc.read
user_netrc["some.host.name"] = {"email", "password"}
user_netrc.save
Read:
user_netrc = Netrc.read
puts user_netrc.unparse
ent = user_netrc["some.host.name"]
exit if ent.nil?
puts ent.password
Contributing
- Fork it (https://github.com/your-github-user/netrc/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- usiegj00 - creator and maintainer
Copyright
Copyright 2024 usiegj00. All rights reserved.
Repository
crystal-netrc
Owner
Statistic
- 0
- 0
- 0
- 1
- 0
- 5 months ago
- May 23, 2024
License
Links
Synced at
Thu, 07 Nov 2024 11:52:51 GMT
Languages