module

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).

XDG_CONFIG_HOME = ENV["XDG_CONFIG_HOME"]? || "#{ENV["HOME"]}/.config"

Centralised XDG-aware paths. Used by Secrets::CLI for vault storage and by Secrets::Audit for the per-vault append-only log. Honours XDG_CONFIG_HOME (cf. memory feedback_xdg_config_convention.md).

Nested types