♻️ 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
This commit is contained in:
committed by
Jeremiah Russell
parent
e80c7e3273
commit
40ea9e52f4
@@ -92,7 +92,7 @@ impl EolRule {
|
||||
self.labels.iter().map(|i| i.to_string()).collect()
|
||||
}
|
||||
|
||||
pub(crate) fn set_command(&mut self, value: &EolAction) -> &mut Self {
|
||||
pub(crate) fn set_action(&mut self, value: &EolAction) -> &mut Self {
|
||||
self.action = value.to_string();
|
||||
self
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user