xdg
Constants representing the XDG config locations or their standard defaults if not set.
Installation
-
Add the dependency to your
shard.yml
:dependencies: xdg: github: dscottboggs/xdg.cr
-
Run
shards install
Usage
require "xdg"
File.open XDG.config_file("myapp") / "config.yml", mode: "w" do |config|
myapp_config.to_yaml config
end