@@ -66,3 +66,17 @@ impl Cuddle<PreparePlan> {
|
||||
Ok(Cuddle { state })
|
||||
}
|
||||
}
|
||||
|
||||
impl Cuddle<ValidatedState> {
|
||||
pub fn has_project(&self) -> bool {
|
||||
if self.state.project.is_some() {
|
||||
return true;
|
||||
}
|
||||
|
||||
if self.state.plan.is_some() {
|
||||
return true;
|
||||
}
|
||||
|
||||
false
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user