Resolves the task name, defaulting to the task type if not provided.
(&self)
| 53 | impl TaskArgs { |
| 54 | /// Resolves the task name, defaulting to the task type if not provided. |
| 55 | pub fn resolved_name(&self) -> String { |
| 56 | self.name.clone().unwrap_or_else(|| self.r#type.clone()) |
| 57 | } |
| 58 | |
| 59 | /// Returns a display suffix for the branch flag, e.g. ` from:main`. |
| 60 | pub fn branch_suffix(&self) -> String { |