feat: Support entry renaming #3
1 changed files with 10 additions and 0 deletions
|
@ -9,3 +9,13 @@ pub enum Mode {
|
|||
/// TODO
|
||||
Rename(String),
|
||||
}
|
||||
|
||||
impl Mode {
|
||||
/// TODO
|
||||
pub fn new_name(&self) -> Option<&str> {
|
||||
match &self {
|
||||
Mode::Rename(new_name) => Some(new_name),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue