Secrets
Constants
CONFIG_DIR = "#{XDG_CONFIG_HOME}/secrets"
VERSION = {{
(((read_file("/tmp/tmp.ajIBfH/src/src/secrets/../../shard.yml"))
.lines
.find(&.starts_with?("version:")) || "version: 0.0.0")
.gsub(/^version:\s*/, ""))
.chomp
}}
Lue au compile-time depuis shard.yml via le macro read_file.
Cf. note mémoire feedback_shard_version_macro.md (mémoire ALOLI).