Commit Graph

3 Commits

Author SHA1 Message Date
Jeremiah Russell
9c237d8681 feat(eol_action): add parse method to EolAction
- implement `parse` method for `EolAction` to convert strings to `EolAction` variants
- support "trash" and "delete" strings, return `None` for others
2025-10-11 09:35:12 +01:00
Jeremiah Russell
40ea9e52f4 ♻️ refactor(cli): rename command to sub_command for clarity
- rename `command` field to `sub_command` in `Cli` and `ConfigCli` structs
- rename `Commands` enum to `SubCmds` to reflect its role as subcommand
- update references to the renamed fields and enum variants
- this improves code readability and avoids confusion with other command concepts

🐛 fix(config): correct method name for setting eol action

- rename `set_command` to `set_action` in `EolRule` struct
- update references in `config.rs` to use the correct method name
- this fixes a bug where the eol action was not being set correctly
2025-10-09 14:30:21 +01:00
Jeremiah Russell
a317372d3a ♻️ refactor(core): rename eol_cmd to eol_action
- clarifies the file's purpose as defining actions related to EOL handling rather than just commands
2025-10-09 14:12:41 +01:00