|
@@ -11,6 +11,16 @@ pub struct Group {
|
|
|
members: Vec<String>,
|
|
|
}
|
|
|
|
|
|
-/*impl fmt::Display for Group {
|
|
|
-
|
|
|
-}*/
|
|
|
+impl fmt::Display for Group {
|
|
|
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
|
+ write!(f, "Group {}:\n\tRepos:\n", self.name)?;
|
|
|
+ for repo in &self.members {
|
|
|
+ write!(f, "\t\t - {}\n", repo)?;
|
|
|
+ }
|
|
|
+ write!(f, "\tActions\n")?;
|
|
|
+ for action in &self.actions_after {
|
|
|
+ write!(f, "\t\t - {}\n", action)?;
|
|
|
+ }
|
|
|
+ write!(f, "")
|
|
|
+ }
|
|
|
+}
|