Some checks failed
continuous-integration/drone/push Build is failing
Improves the flexibility and clarity of file processing by introducing separate include and exclude lists. - Replace `ignore_list` with `exclude_list` and add `include_list` in `.code_preloader.yml`. - Update `cli.cr` to handle both `include_list` and `exclude_list` for file selection. - Add support for tracing exceptions with a new `trace` configuration option. - Modify `PackOptions` class to include `exclude_list` and `include_list` properties. - Adjust option parsing in `config.cr` to reflect new configuration options. Signed-off-by: Glenn <glenux@glenux.net>
25 lines
557 B
Crystal
25 lines
557 B
Crystal
|
|
require "yaml"
|
|
require "./prompt_config"
|
|
|
|
module CodePreloader::Models
|
|
class RootConfig
|
|
include YAML::Serializable
|
|
include YAML::Serializable::Strict
|
|
|
|
@[YAML::Field(key: "source_list")]
|
|
getter source_list : Array(String)?
|
|
|
|
@[YAML::Field(key: "output_path")]
|
|
getter output_path : String?
|
|
|
|
@[YAML::Field(key: "prompt")]
|
|
getter prompt : PromptConfig?
|
|
|
|
@[YAML::Field(key: "exclude_list")]
|
|
getter exclude_list : Array(String)?
|
|
|
|
@[YAML::Field(key: "include_list")]
|
|
getter include_list : Array(String)?
|
|
end
|
|
end
|