guru/dev-util/gshards/files/0.1/gshards-get-pkgname.cr
Anna (cybertailor) Vyalkova 582cf2584b
dev-util/gshards: new package, add 0.1
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-11-08 22:11:30 +05:00

11 lines
203 B
Crystal

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
require "yaml"
yaml = File.open("shard.yml") do |file|
YAML.parse(file)
end
puts yaml["name"].as_s