module Hace
Extended Modules
Defined in:
hace.crConstant Summary
-
ENVIRONMENT =
{} of String => String -
TASKS_WITH_CLI_ARGS =
Set(String).new -
Track which tasks explicitly use {{CLI_ARGS}} (detected before Crinja expansion)
-
VARIABLES =
{} of String => YAML::Any -
VERSION =
{{ (`shards version /srv/crystaldoc.info/github-ralsina-hace-v0.8.1/src`).chomp.stringify }}
Class Method Summary
- .expand_glob(str : String) : Array(String)
- .expand_string(str : String, variables = Hace::VARIABLES) : String
-
.inject_cli_args(cli_args : Array(String))
Inject CLI_ARGS and CLI_ARGS_LIST into VARIABLES for template expansion
- .load_dotenv(dotenv_file = nil)
-
.to_crinja_value(value : YAML::Any) : Crinja::Value
Convert YAML::Any values to Crinja-compatible values This is needed because Crinja::Value.new(YAML::Any) doesn't properly unwrap the value due to overload resolution favoring the Raw type
- .to_crinja_value(value) : Crinja::Value
-
.to_crinja_variables(hash : Hash(String, YAML::Any)) : Crinja::Variables
Convert a Hash(String, YAML::Any) to Crinja::Variables
Class Method Detail
def self.inject_cli_args(cli_args : Array(String))
#
Inject CLI_ARGS and CLI_ARGS_LIST into VARIABLES for template expansion
def self.to_crinja_value(value : YAML::Any) : Crinja::Value
#
Convert YAML::Any values to Crinja-compatible values This is needed because Crinja::Value.new(YAML::Any) doesn't properly unwrap the value due to overload resolution favoring the Raw type
def self.to_crinja_variables(hash : Hash(String, YAML::Any)) : Crinja::Variables
#
Convert a Hash(String, YAML::Any) to Crinja::Variables