class

Enkaidu::Env::Profile

Inherits Reference < Object

Constants

CONFIG_FILE_NAME = "config"
MAX_DIR_DEPTH = 8
VAR_FILE_NAMES = ["variables.yml", "variables.yaml"]
YAML_EXTS = [".yaml", ".yml"]

Constructors

new(base_path, renderer : Enkaidu::SessionRenderer, quiet = false)

Create a profile using the given base directory where we will look for a DOT_ENKAIDU folder

Source

Instance methods

config

Loaded profile configuration, if any found

Source
config_path

Path to loaded configuration, if any found

Source
error_and_exit_with(message)
Source
macros

Hash of Macros loaded from macros/ folder in the profile

Source
profile_path

The profile DOT_ENKAIDU path if one exists

Source
prompts

Hash of Prompts loaded from prompts/ folder in the profile

Source
renderer

The SessionRenderer for this environment

Source
system_prompts

Hash of SystemPrompts loaded from system_prompts/ folder in the profile

Source
variables

Variables loaded from the variables.* file

Source